camerauis/cameraapp/generic/src/camcapturebuttoncontainer.cpp
branchRCL_3
changeset 67 756ad29ed18e
parent 62 f0c0788c4de2
--- a/camerauis/cameraapp/generic/src/camcapturebuttoncontainer.cpp	Wed Sep 15 11:51:19 2010 +0300
+++ b/camerauis/cameraapp/generic/src/camcapturebuttoncontainer.cpp	Wed Oct 13 14:09:54 2010 +0300
@@ -285,6 +285,13 @@
     TRect boundingRect( iCaptureRect );
     boundingRect.Move( -boundingRect.iTl.iX, -boundingRect.iTl.iY );
 
+    // Clear the window
+    aGc.SetPenStyle( CGraphicsContext::ENullPen );
+    aGc.SetBrushStyle( CGraphicsContext::ESolidBrush );
+    aGc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
+    aGc.SetBrushColor( TRgb::Color16MA( 0 ) );
+    aGc.Clear( boundingRect ); 
+
     if ( iCaptureButtonPressed )
         {
         aGc.BitBltMasked( iCaptureRect.iTl, iCaptureIconPressed, boundingRect, iCaptureIconPressedMask, EFalse );