videoplayback/videoplaybackcontrols/src/mpxvideoplaybackaspectratioicon.cpp
branchRCL_3
changeset 6 7d91903f795f
parent 0 96612d01cf9f
child 15 8f0df5c82986
equal deleted inserted replaced
2:dec420019252 6:7d91903f795f
    13 *
    13 *
    14 * Description: Aspect ratio control
    14 * Description: Aspect ratio control
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 11 %
    18 // Version : %version: 12 %
    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>
   216     MPX_DEBUG(_L("CMPXVideoPlaybackAspectRatioIcon::Draw()"));
   216     MPX_DEBUG(_L("CMPXVideoPlaybackAspectRatioIcon::Draw()"));
   217 
   217 
   218     CWindowGc& gc = SystemGc();
   218     CWindowGc& gc = SystemGc();
   219     gc.SetClippingRect( aRect );
   219     gc.SetClippingRect( aRect );
   220 
   220 
   221     if ( Window().DisplayMode() == EColor16MAP )
   221     if ( iController->SetBackgroundBlack() )
   222     {
   222     {
   223         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   223         if ( Window().DisplayMode() == EColor16MAP )
   224         gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   224         {
   225         gc.Clear( aRect );
   225             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   226     }
   226             gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   227     else if ( Window().DisplayMode() == EColor16MA )
   227             gc.Clear( aRect );
   228     {
   228         }
   229         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   229         else if ( Window().DisplayMode() == EColor16MA )
   230         gc.SetBrushColor( TRgb::Color16MA( 0 ) );
   230         {
   231         gc.Clear( aRect );
   231             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
       
   232             gc.SetBrushColor( TRgb::Color16MA( 0 ) );
       
   233             gc.Clear( aRect );
       
   234         }
   232     }
   235     }
   233     else
   236     else
   234     {
   237     {
   235         // draw a solid background so that the entire progress
   238         // draw a solid background so that the entire progress
   236         // bar is shown not just the area representing the
   239         // bar is shown not just the area representing the