uiacceltk/hitchcock/coretoolkit/src/huicanvaspainter.cpp
branchRCL_3
changeset 24 f93c875b566e
parent 8 10534483575f
child 41 cd0ae4656946
equal deleted inserted replaced
22:7c5dd702d6d3 24:f93c875b566e
   246 
   246 
   247 
   247 
   248 TRect CHuiCanvasPainter::CommandBufferCoverage(TInt aOrientation)
   248 TRect CHuiCanvasPainter::CommandBufferCoverage(TInt aOrientation)
   249     {
   249     {
   250     TInt bufferCount = iCommandBuffers.Count();
   250     TInt bufferCount = iCommandBuffers.Count();
   251     RRegion tempRegion;
   251     RRegionBuf<1> tempRegion;
   252     
   252     
   253     for (TInt cb = 0; cb < bufferCount; cb++)
   253     for (TInt cb = 0; cb < bufferCount; cb++)
   254         {        
   254         {        
   255         if (iCommandBuffers[cb]->iOrientation == aOrientation)
   255         if (iCommandBuffers[cb]->iOrientation == aOrientation)
   256             {
   256             {
   257             // should this be original display rect or update region
   257             // should this be original display rect or update region
   258             tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect);
   258             tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect);
   259             }
   259             }
   260         }    
   260         }    
   261     return tempRegion.BoundingRect();
   261     TRect result = tempRegion.BoundingRect();
       
   262     tempRegion.Close();
       
   263     return result;
   262     }
   264     }
   263 
   265 
   264 void CHuiCanvasPainter::ClearCapturingBufferArea(const TRect& /*aRect*/)
   266 void CHuiCanvasPainter::ClearCapturingBufferArea(const TRect& /*aRect*/)
   265     {
   267     {
   266     // Not supported by default
   268     // Not supported by default