videoplayback/videoplaybackcontrols/src/mpxvideoplaybackbrandinganimation.cpp
branchRCL_3
changeset 15 8f0df5c82986
parent 6 7d91903f795f
equal deleted inserted replaced
14:55fa1ec415c6 15:8f0df5c82986
    13 *
    13 *
    14 * Description: Branding Animation control
    14 * Description: Branding Animation control
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 9 %
    18 
       
    19 // Version : %version: 10 %
    19 
    20 
    20 
    21 
    21 // INCLUDE FILES
    22 // INCLUDE FILES
    22 #include <eikenv.h>
    23 #include <eikenv.h>
    23 #include <gulicon.h>
    24 #include <gulicon.h>
   215     MPX_DEBUG(_L("CMPXVideoPlaybackBrandingAnimation::Draw()"));
   216     MPX_DEBUG(_L("CMPXVideoPlaybackBrandingAnimation::Draw()"));
   216 
   217 
   217     CWindowGc& gc = SystemGc();
   218     CWindowGc& gc = SystemGc();
   218     gc.SetClippingRect( aRect );
   219     gc.SetClippingRect( aRect );
   219 
   220 
   220     if ( iController->SetBackgroundBlack() )
   221     if ( Window().DisplayMode() == EColor16MAP )
   221     {
   222     {
   222         if ( Window().DisplayMode() == EColor16MAP )
   223         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   223         {
   224         gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   224             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   225         gc.Clear( aRect );
   225             gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   226     }
   226             gc.Clear( aRect );
   227     else if ( Window().DisplayMode() == EColor16MA )
   227         }
   228     {
   228         else if ( Window().DisplayMode() == EColor16MA )
   229         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   229         {
   230         gc.SetBrushColor( TRgb::Color16MA( 0 ) );
   230             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   231         gc.Clear( aRect );
   231             gc.SetBrushColor( TRgb::Color16MA( 0 ) );
       
   232             gc.Clear( aRect );
       
   233         }
       
   234     }
       
   235     else
       
   236     {
       
   237         // draw a solid background so that the entire progress
       
   238         // bar is shown not just the area representing the
       
   239         // portion that has been played.
       
   240         gc.SetBrushColor( KRgbBlack );
       
   241         gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
       
   242         gc.DrawRect( aRect );
       
   243         gc.SetBrushStyle( CGraphicsContext::ENullBrush );
       
   244     }
   232     }
   245 
   233 
   246     //
   234     //
   247     // draw branding animation
   235     // draw branding animation
   248     //
   236     //