diff -r 5bf83dc720b3 -r a5ac35ca6d81 multimediacommscontroller/mmccvideosourcesink/src/mccredrawhandler.cpp --- a/multimediacommscontroller/mmccvideosourcesink/src/mccredrawhandler.cpp Tue Apr 27 17:02:55 2010 +0300 +++ b/multimediacommscontroller/mmccvideosourcesink/src/mccredrawhandler.cpp Tue May 11 16:34:40 2010 +0300 @@ -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 ); } // -----------------------------------------------------------------------------