uiacceltk/hitchcock/coretoolkit/src/huicanvaswspainter.cpp
branchRCL_3
changeset 34 3a60ebea00d0
parent 24 f93c875b566e
child 41 cd0ae4656946
equal deleted inserted replaced
24:f93c875b566e 34:3a60ebea00d0
   564                 continue;
   564                 continue;
   565                 }
   565                 }
   566             
   566             
   567             // Clip drawing to update area. This seems to improve performance although
   567             // Clip drawing to update area. This seems to improve performance although
   568             // it may depend on used HW.
   568             // it may depend on used HW.
       
   569 
       
   570             // Set position delta to zero, otherwise updateregion is adjusted incorrectly
       
   571             // in SW mode. No effect on HW mode as it does not adjust the updateregion in
       
   572             // EnableUpdateRegion call...
       
   573             TPoint delta(0,0);
       
   574             iCanvasWsGc->SetPositionDelta(delta);
   569             iCanvasWsGc->EnableUpdateRegion(iCommandBuffers[cb]->iUpdateRegion, aClearBeforeHandlingBuffers);
   575             iCanvasWsGc->EnableUpdateRegion(iCommandBuffers[cb]->iUpdateRegion, aClearBeforeHandlingBuffers);
   570 
   576 
   571             #ifdef HUI_DEBUG_PRINT_PERFORMANCE_INTERVAL
   577             #ifdef HUI_DEBUG_PRINT_PERFORMANCE_INTERVAL
   572             RDebug::Print(_L(">> CHuiCanvasWsPainter::DoHandleAllBuffersL ClipRegion after clipping to updateregion:"));                
   578             RDebug::Print(_L(">> CHuiCanvasWsPainter::DoHandleAllBuffersL ClipRegion after clipping to updateregion:"));                
   573             const TRegion& clipregion = aGc->ClipRegion(); 
   579             const TRegion& clipregion = aGc->ClipRegion();