1904 |
1904 |
1905 // If render buffer is used, draw its content to display here |
1905 // If render buffer is used, draw its content to display here |
1906 if (aUpdateDisplay && renderbuffer && iCanvasGc->Gc()) |
1906 if (aUpdateDisplay && renderbuffer && iCanvasGc->Gc()) |
1907 { |
1907 { |
1908 THuiRealRect updatedRect = aUpdateRegion.BoundingRect(); |
1908 THuiRealRect updatedRect = aUpdateRegion.BoundingRect(); |
1909 |
1909 TInt w; |
|
1910 TInt h ; |
1910 // Handle relative rotation |
1911 // Handle relative rotation |
1911 TRect displayArea = iVisual->Display()->VisibleArea(); |
1912 if (iVisual->Display()) |
1912 TInt w = displayArea.Width(); |
1913 { |
1913 TInt h = displayArea.Height(); |
1914 TRect displayArea = iVisual->Display()->VisibleArea(); |
1914 |
1915 w = displayArea.Width(); |
|
1916 h = displayArea.Height(); |
|
1917 } |
1915 // ...select right rotation... |
1918 // ...select right rotation... |
1916 if (iRelativeOrientation == CHuiGc::EOrientationCW90) |
1919 if (iRelativeOrientation == CHuiGc::EOrientationCW90) |
1917 { |
1920 { |
1918 // Rotate around origo and move back to displayarea |
1921 // Rotate around origo and move back to displayarea |
1919 iCanvasGc->Rotate(-90, 0, 0, 1.f); |
1922 iCanvasGc->Rotate(-90, 0, 0, 1.f); |