javauis/lcdui_akn/lcdui/src/CMIDTextEditorEdwinCustomDraw.cpp
branchRCL_3
changeset 24 0fd27995241b
parent 19 04becd199f91
child 25 9ac0a0a7da70
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
   120         aText,
   120         aText,
   121         aTextOrigin,
   121         aTextOrigin,
   122         aExtraPixels);
   122         aExtraPixels);
   123 }
   123 }
   124 
   124 
       
   125 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   126 // ---------------------------------------------------------------------------
       
   127 // CMIDTextEditorEdwinCustomDraw::DrawText
       
   128 // (other items were commented in the header file)
       
   129 // ---------------------------------------------------------------------------
       
   130 //
       
   131 void CMIDTextEditorEdwinCustomDraw::DrawText(
       
   132     const TParam& aParam,
       
   133     const TLineInfo& aLineInfo,
       
   134     const TCharFormat& aFormat,
       
   135     const TDesC& aText,
       
   136     const TInt aStart,
       
   137     const TInt aEnd,
       
   138     const TPoint& aTextOrigin,
       
   139     TInt aExtraPixels) const
       
   140 {
       
   141     // If transparency is enabled, check that if draw has not been invoked
       
   142     // yet and issue redraw in that case. This removes the issue with
       
   143     // transparency so that the old content does not cause corruption to
       
   144     // the new text drawn on top of the old content. Otherwise it is ok
       
   145     // to draw the text because opaque background draws on top of the old
       
   146     // content in the editor.
       
   147 
       
   148     if (iEdwin.IsTransparent() && !iEdwin.DrawOngoing())
       
   149     {
       
   150         iEdwin.Redraw();
       
   151         return;
       
   152     }
       
   153 
       
   154     iParentDraw.DrawText(
       
   155         aParam,
       
   156         aLineInfo,
       
   157         aFormat,
       
   158         aText,
       
   159         aStart,
       
   160         aEnd,
       
   161         aTextOrigin,
       
   162         aExtraPixels);
       
   163 }
       
   164 #endif
       
   165 
   125 // ---------------------------------------------------------------------------
   166 // ---------------------------------------------------------------------------
   126 // CMIDTextEditorEdwinCustomDraw::SystemColor
   167 // CMIDTextEditorEdwinCustomDraw::SystemColor
   127 // (other items were commented in the header file)
   168 // (other items were commented in the header file)
   128 // ---------------------------------------------------------------------------
   169 // ---------------------------------------------------------------------------
   129 //
   170 //