videoplayback/videoplaybackcontrols/src/mpxvideoplaybackcontrol.cpp
branchRCL_3
changeset 6 7d91903f795f
parent 0 96612d01cf9f
child 14 8970fbd719ec
equal deleted inserted replaced
2:dec420019252 6:7d91903f795f
    13 *
    13 *
    14 * Description:  Implementation of CMPXVideoPlaybackControl
    14 * Description:  Implementation of CMPXVideoPlaybackControl
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 18 %
    18 // Version : %version: 19 %
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include <avkon.hrh>
    22 #include <avkon.hrh>
    23 #include <e32std.h>
    23 #include <e32std.h>
   172     MPX_DEBUG(_L("CMPXVideoPlaybackControl::Draw()"));
   172     MPX_DEBUG(_L("CMPXVideoPlaybackControl::Draw()"));
   173 
   173 
   174     CWindowGc& gc = SystemGc();
   174     CWindowGc& gc = SystemGc();
   175     gc.SetClippingRect( aRect );
   175     gc.SetClippingRect( aRect );
   176 
   176 
   177     if ( Window().DisplayMode() == EColor16MAP )
   177     if ( iController->SetBackgroundBlack() )
   178     {
   178     {
   179         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   179         if ( Window().DisplayMode() == EColor16MAP )
   180         gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   180         {
   181     }
   181             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   182     else if ( Window().DisplayMode() == EColor16MA )
   182             gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   183     {
   183         }
   184         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   184         else if ( Window().DisplayMode() == EColor16MA )
   185         gc.SetBrushColor( TRgb::Color16MA( 0 ) );
   185         {
       
   186             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
       
   187             gc.SetBrushColor( TRgb::Color16MA( 0 ) );
       
   188         }
   186     }
   189     }
   187     else
   190     else
   188     {
   191     {
   189         gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
   192         gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
   190         gc.SetBrushColor( KRgbBlack );
   193         gc.SetBrushColor( KRgbBlack );