uifw/AvKon/src/aknutils.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 10 9f56a4e1b8ab
child 16 71dd06cfe933
--- a/uifw/AvKon/src/aknutils.cpp	Mon Mar 15 12:41:34 2010 +0200
+++ b/uifw/AvKon/src/aknutils.cpp	Wed Mar 31 21:59:52 2010 +0300
@@ -3411,8 +3411,8 @@
     {
     TAknWindowComponentLayout line;
     TAknLayoutRect rect;
-    rect.LayoutRect( TRect( 0, 0, 0, 0 ), AknLayoutScalable_Avkon::Screen() );
-    TRect screenRect( rect.Rect() );
+    TRect screenRect(0, 0, AKN_LAYOUT_WINDOW_screen.iW, AKN_LAYOUT_WINDOW_screen.iH);
+    aRect.SetRect( 0, 0, 0, 0 );
     
     // No stacon pane active etc. cheking is done here before the switch-case so that we can 
     // have slightly better performance for some other lookups (e.g. screen).
@@ -3574,18 +3574,16 @@
                     variety = 25;
                     }
 
-                rect.LayoutRect( screenRect, TAknWindowComponentLayout::Compose(
-                                     AknLayoutScalable_Avkon::application_window( 0 ),
-                                     AknLayoutScalable_Avkon::main_pane( variety ) ) );
+                rect.LayoutRect( screenRect,
+                                 AknLayoutScalable_Avkon::main_pane( variety ) );
                 aRect = rect.Rect();
                 return ETrue;
                 }
             else if ( screenRect.iBr.iX == 360 && screenRect.iBr.iY == 640 )
                 {
                 TInt variety = 1;
-                rect.LayoutRect( screenRect, TAknWindowComponentLayout::Compose(
-                                     AknLayoutScalable_Avkon::application_window( 0 ),
-                                     AknLayoutScalable_Avkon::main_pane( variety ) ) );
+                rect.LayoutRect( screenRect,
+                                 AknLayoutScalable_Avkon::main_pane( variety ) );
                 aRect = rect.Rect();
                 return ETrue;
                 }