equal
deleted
inserted
replaced
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 // add update region of command buffer to region |
258 tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect); |
258 TRect rect(iCommandBuffers[cb]->iOriginalUpdateRegion.BoundingRect()); |
259 } |
259 rect.Move(-iCommandBuffers[cb]->iOriginalDisplayRect.Round().iTl); |
260 } |
260 |
|
261 tempRegion.AddRect(rect); |
|
262 tempRegion.Tidy(); |
|
263 } |
|
264 } |
|
265 |
|
266 if (iCanvasVisual) |
|
267 { |
|
268 TRect displayRect(iCanvasVisual->DisplayRect()); |
|
269 tempRegion.ClipRect(TRect(displayRect.Size())); |
|
270 tempRegion.Offset(displayRect.iTl); |
|
271 } |
|
272 |
261 TRect result = tempRegion.BoundingRect(); |
273 TRect result = tempRegion.BoundingRect(); |
262 tempRegion.Close(); |
274 tempRegion.Close(); |
263 return result; |
275 return result; |
264 } |
276 } |
265 |
277 |