uiacceltk/hitchcock/coretoolkit/src/huicanvaswshwgc.cpp
branchRCL_3
changeset 3 d8a3531bc6b8
parent 0 15bf7259bb7c
child 5 433cbbb6a04b
equal deleted inserted replaced
0:15bf7259bb7c 3:d8a3531bc6b8
  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);