uifw/ganes/src/HgVgLetterPopup.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 4 8ca85d2f0db7
child 16 71dd06cfe933
--- a/uifw/ganes/src/HgVgLetterPopup.cpp	Fri Mar 12 15:43:43 2010 +0200
+++ b/uifw/ganes/src/HgVgLetterPopup.cpp	Mon Mar 15 12:41:34 2010 +0200
@@ -187,6 +187,11 @@
     // draw background     
     vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE);
     vgLoadIdentity();
+    if (iLandscape)
+    {
+        vgTranslate(0.0f, 640.0f); 
+        vgRotate(-90.0f);        
+    }
     
     vgTranslate(iRect.iTl.iX, (aWindowRect.Height() - iRect.iBr.iY));
 
@@ -203,7 +208,7 @@
     // draw letter
     color.SetAlpha(aAlpha * 255.0f);
     HgVgHelper::DrawImageColorized(iLetterImage, 
-            color, iRect.iTl, aWindowRect, EFalse);
+            color, iRect.iTl, aWindowRect, EFalse, iLandscape);
     }
 
 void CHgVgPopup::SetLayouts(const TAknWindowComponentLayout& aPopupLayout, 
@@ -216,5 +221,10 @@
     iParentRect = aParentRect;
     }
 
+void CHgVgPopup::EnableLanscapeRendering(TBool enabled)
+{
+    iLandscape = enabled;
+}
+
 
 // End of File