diff -r 55fa1ec415c6 -r 8f0df5c82986 videoplayback/videoplaybackcontrols/src/mpxvideoplaybackvolumebar.cpp --- a/videoplayback/videoplaybackcontrols/src/mpxvideoplaybackvolumebar.cpp Tue May 11 16:15:40 2010 +0300 +++ b/videoplayback/videoplaybackcontrols/src/mpxvideoplaybackvolumebar.cpp Tue May 25 12:44:54 2010 +0300 @@ -16,7 +16,7 @@ */ -// Version : %version: 22 % +// Version : %version: 23 % // INCLUDE FILES @@ -826,30 +826,17 @@ CWindowGc& gc = SystemGc(); gc.SetClippingRect( aRect ); - if ( iController->SetBackgroundBlack() ) + if ( Window().DisplayMode() == EColor16MAP ) { - if ( Window().DisplayMode() == EColor16MAP ) - { - gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); - gc.SetBrushColor( TRgb::Color16MAP( 255 ) ); - gc.Clear( aRect ); - } - else if ( Window().DisplayMode() == EColor16MA ) - { - gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); - gc.SetBrushColor( TRgb::Color16MA( 0 ) ); - gc.Clear( aRect ); - } + gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); + gc.SetBrushColor( TRgb::Color16MAP( 255 ) ); + gc.Clear( aRect ); } - else + else if ( Window().DisplayMode() == EColor16MA ) { - // draw a solid background so that the entire progress - // bar is shown not just the area representing the - // portion that has been played. - gc.SetBrushColor( KRgbBlack ); - gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); - gc.DrawRect( aRect ); - gc.SetBrushStyle(CGraphicsContext::ENullBrush); + gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); + gc.SetBrushColor( TRgb::Color16MA( 0 ) ); + gc.Clear( aRect ); } if ( ! iController->FileDetails()->iAudioEnabled || iMuted )