videoplayback/videoplaybackcontrols/src/mpxvideoplaybackvolumebar.cpp
branchRCL_3
changeset 6 7d91903f795f
parent 0 96612d01cf9f
child 10 112a725ff2c2
equal deleted inserted replaced
2:dec420019252 6:7d91903f795f
    13 *
    13 *
    14 * Description: Volume bar control
    14 * Description: Volume bar control
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 15 %
    18 // Version : %version: 16 %
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include <eikenv.h>
    22 #include <eikenv.h>
    23 #include <gulicon.h>
    23 #include <gulicon.h>
   806     MPX_DEBUG(_L("CMPXVideoPlaybackVolumeBar::Draw()"));
   806     MPX_DEBUG(_L("CMPXVideoPlaybackVolumeBar::Draw()"));
   807 
   807 
   808     CWindowGc& gc = SystemGc();
   808     CWindowGc& gc = SystemGc();
   809     gc.SetClippingRect( aRect );
   809     gc.SetClippingRect( aRect );
   810 
   810 
   811     if ( Window().DisplayMode() == EColor16MAP )
   811     if ( iController->SetBackgroundBlack() )
   812     {
   812     {
   813         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   813         if ( Window().DisplayMode() == EColor16MAP )
   814         gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   814         {
   815         gc.Clear( aRect );
   815             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   816     }
   816             gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   817     else if ( Window().DisplayMode() == EColor16MA )
   817             gc.Clear( aRect );
   818     {
   818         }
   819         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   819         else if ( Window().DisplayMode() == EColor16MA )
   820         gc.SetBrushColor( TRgb::Color16MA( 0 ) );
   820         {
   821         gc.Clear( aRect );
   821             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
       
   822             gc.SetBrushColor( TRgb::Color16MA( 0 ) );
       
   823             gc.Clear( aRect );
       
   824         }
   822     }
   825     }
   823     else
   826     else
   824     {
   827     {
   825         // draw a solid background so that the entire progress
   828         // draw a solid background so that the entire progress
   826         // bar is shown not just the area representing the
   829         // bar is shown not just the area representing the