equal
deleted
inserted
replaced
2065 { |
2065 { |
2066 TInt oldAlpha = gc->PenAlpha(); |
2066 TInt oldAlpha = gc->PenAlpha(); |
2067 TRgb oldColor = gc->PenColor(); |
2067 TRgb oldColor = gc->PenColor(); |
2068 gc->SetPenAlpha(0); |
2068 gc->SetPenAlpha(0); |
2069 gc->SetPenColor(KRgbBlue); |
2069 gc->SetPenColor(KRgbBlue); |
2070 gc->Clear(); |
2070 TRect rect = aUpdateRegion.BoundingRect(); |
|
2071 gc->Clear(rect); |
2071 gc->SetPenAlpha(oldAlpha); |
2072 gc->SetPenAlpha(oldAlpha); |
2072 gc->SetPenColor(oldColor); |
2073 gc->SetPenColor(oldColor); |
2073 } |
2074 } |
2074 } |
2075 } |
2075 } |
2076 } |
2104 iCanvasGc->Gc()->PushClip(); |
2105 iCanvasGc->Gc()->PushClip(); |
2105 |
2106 |
2106 // Set new clipping region which does not clip anything. |
2107 // Set new clipping region which does not clip anything. |
2107 // We want always draw aUpdateRegion fully to the aRenderbuffer. |
2108 // We want always draw aUpdateRegion fully to the aRenderbuffer. |
2108 TRect displayArea = iCanvasGc->Gc()->DisplayArea(); |
2109 TRect displayArea = iCanvasGc->Gc()->DisplayArea(); |
|
2110 |
2109 iCanvasGc->Gc()->SetClip(displayArea); // this call does not transform region anymore |
2111 iCanvasGc->Gc()->SetClip(displayArea); // this call does not transform region anymore |
2110 |
2112 |
2111 // We use translation to get screen coordinates to match render buffer coordinates |
2113 // We use translation to get screen coordinates to match render buffer coordinates |
2112 iCanvasGc->PushTransformationMatrix(); |
2114 iCanvasGc->PushTransformationMatrix(); |
2113 iCanvasGc->Translate(x, y, 0.f); |
2115 iCanvasGc->Translate(x, y, 0.f); |