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 // |