diff -r 3f7c7e6eea8a -r 4da1f672912e multimediacommscontroller/mmccvideosourcesink/src/mccredrawhandler.cpp --- a/multimediacommscontroller/mmccvideosourcesink/src/mccredrawhandler.cpp Tue Aug 31 15:35:13 2010 +0300 +++ b/multimediacommscontroller/mmccvideosourcesink/src/mccredrawhandler.cpp Wed Sep 01 12:20:28 2010 +0100 @@ -61,7 +61,6 @@ __V_SOURCESINK_CONTROLL_INT1( "CMccRedrawHandler::BlackDrawingL, enabled:", aIsEnabled ) - iDrawBlack = aIsEnabled; if ( DoRedrawing() ) { @@ -116,8 +115,7 @@ CActive( CActive::EPriorityStandard ), iWsSession( aWsSession ), iWindow( aWindow ), - iGc( aGc ), - iDrawBlack( EFalse ) + iGc( aGc ) { CActiveScheduler::Add( this ); } @@ -150,14 +148,7 @@ iWindow.Invalidate( aRect ); iWindow.BeginRedraw( aRect ); - if ( iDrawBlack ) - { - iGc.SetBrushStyle( CGraphicsContext::ESolidBrush ); - iGc.SetBrushColor( KRgbBlack ); - iGc.Clear( aRect ); - iDrawBlack = EFalse; - } - else if ( iWindow.DisplayMode() >= EColor16MA ) + if ( iWindow.DisplayMode() >= EColor16MA ) { // Need to set alpha mode, otherwise video cannot be seen iGc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); @@ -182,7 +173,7 @@ // TBool CMccRedrawHandler::DoRedrawing() const { - return ( iDrawBlack || iWindow.DisplayMode() >= EColor16MA ); + return ( iWindow.DisplayMode() >= EColor16MA ); } // -----------------------------------------------------------------------------