uifw/eikctl/src/EIKMFNE.CPP
branchRCL_3
changeset 15 c52421ed5f07
parent 12 941195f2d488
child 18 fcdfafb36fe7
--- a/uifw/eikctl/src/EIKMFNE.CPP	Wed Jun 09 09:58:37 2010 +0300
+++ b/uifw/eikctl/src/EIKMFNE.CPP	Mon Jun 21 15:57:43 2010 +0300
@@ -2448,11 +2448,6 @@
                     }
                 else 
                     {
-                    if (IsDimmed())
-                        SetGcToDimmedVideo(aGc);
-                    else
-                        SetGcToNormalVideo(aGc);
-
                     // Note!! This is taking responsibility away from the CEikMfne Field for drawing
                     // Skin background is drawn for the fields here
                     if( SkinningBackground() && !iFlags[EUseOverrideColors] )
@@ -2486,6 +2481,15 @@
                         // Set up null brush GC here for the upcoming draw
                         aGc.SetBrushStyle(CGraphicsContext::ENullBrush);
                         }
+                    // set aGc for drawing field text
+                    if ( IsDimmed() )
+                        {
+                        SetGcToDimmedVideo( aGc );
+                        }
+                    else
+                        {
+                        SetGcToNormalVideo( aGc );
+                        }
                     }
                 // This draw must only draw the text with a null brush or draw block highlight 
                 iFields[i]->Draw(aGc, font, topLeftOfField);