videoplayback/videoplaybackcontrols/src/mpxvideoplaybackbrandinganimation.cpp
branchRCL_3
changeset 6 7d91903f795f
parent 0 96612d01cf9f
child 15 8f0df5c82986
equal deleted inserted replaced
2:dec420019252 6:7d91903f795f
    13 *
    13 *
    14 * Description: Branding Animation control
    14 * Description: Branding Animation control
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 7 %
    18 // Version : %version: 9 %
    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>
    55     MPX_DEBUG(_L("CMPXVideoPlaybackBrandingAnimation::ConstructL()"));
    55     MPX_DEBUG(_L("CMPXVideoPlaybackBrandingAnimation::ConstructL()"));
    56 
    56 
    57     //
    57     //
    58     // set rect
    58     // set rect
    59     //
    59     //
    60     SetRect( TRect( 0, 0, aRect.Width(), aRect.Height() ) );
    60     iBrandingRect = TRect( 0, 0, aRect.Width(), aRect.Height() );
    61     iBrandingRect = aRect;
    61     SetRect( iBrandingRect );
    62 
    62 
    63     //
    63     //
    64     // construct branding timer
    64     // construct branding timer
    65     //
    65     //
    66     iBrandingTimer = CPeriodic::NewL( CActive::EPriorityStandard );
    66     iBrandingTimer = CPeriodic::NewL( CActive::EPriorityStandard );
   215     MPX_DEBUG(_L("CMPXVideoPlaybackBrandingAnimation::Draw()"));
   215     MPX_DEBUG(_L("CMPXVideoPlaybackBrandingAnimation::Draw()"));
   216 
   216 
   217     CWindowGc& gc = SystemGc();
   217     CWindowGc& gc = SystemGc();
   218     gc.SetClippingRect( aRect );
   218     gc.SetClippingRect( aRect );
   219 
   219 
   220     if ( Window().DisplayMode() == EColor16MAP )
   220     if ( iController->SetBackgroundBlack() )
   221     {
   221     {
   222         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   222         if ( Window().DisplayMode() == EColor16MAP )
   223         gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   223         {
   224         gc.Clear( aRect );
   224             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   225     }
   225             gc.SetBrushColor( TRgb::Color16MAP( 255 ) );
   226     else if ( Window().DisplayMode() == EColor16MA )
   226             gc.Clear( aRect );
   227     {
   227         }
   228         gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   228         else if ( Window().DisplayMode() == EColor16MA )
   229         gc.SetBrushColor( TRgb::Color16MA( 0 ) );
   229         {
   230         gc.Clear( aRect );
   230             gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
       
   231             gc.SetBrushColor( TRgb::Color16MA( 0 ) );
       
   232             gc.Clear( aRect );
       
   233         }
   231     }
   234     }
   232     else
   235     else
   233     {
   236     {
   234         // draw a solid background so that the entire progress
   237         // draw a solid background so that the entire progress
   235         // bar is shown not just the area representing the
   238         // bar is shown not just the area representing the