javauis/lcdui_akn/lcdgr/src/LcdGraphics.cpp
changeset 23 98ccebc37403
parent 21 2a9601315dfc
child 60 6c158198356e
--- a/javauis/lcdui_akn/lcdgr/src/LcdGraphics.cpp	Mon May 03 12:27:20 2010 +0300
+++ b/javauis/lcdui_akn/lcdgr/src/LcdGraphics.cpp	Fri May 14 15:47:24 2010 +0300
@@ -845,7 +845,13 @@
     iSurface->End(iCount);
 
     CHECK_BITMAP_LOCK();
-
+    
+    // MMIDCanvas::DrawBackground modifies settings of iContext.
+    // Reset pen and brush settings here, so they
+    // are re-applied again when needed.
+    iState = 0;
+    iContext->SetPenStyle(CGraphicsContext::ENullPen);
+    iContext->SetBrushStyle(CGraphicsContext::ENullBrush);
 }
 
 TInt CLcdGraphics::DrawPixels