equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of CMPXVideoPlaybackControl |
14 * Description: Implementation of CMPXVideoPlaybackControl |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 21 % |
18 |
|
19 // Version : %version: 22 % |
19 |
20 |
20 |
21 |
21 // INCLUDE FILES |
22 // INCLUDE FILES |
22 #include <avkon.hrh> |
23 #include <avkon.hrh> |
23 #include <e32std.h> |
24 #include <e32std.h> |
172 MPX_DEBUG(_L("CMPXVideoPlaybackControl::Draw()")); |
173 MPX_DEBUG(_L("CMPXVideoPlaybackControl::Draw()")); |
173 |
174 |
174 CWindowGc& gc = SystemGc(); |
175 CWindowGc& gc = SystemGc(); |
175 gc.SetClippingRect( aRect ); |
176 gc.SetClippingRect( aRect ); |
176 |
177 |
177 if ( iController->SetBackgroundBlack() ) |
178 if ( Window().DisplayMode() == EColor16MAP ) |
178 { |
179 { |
179 if ( Window().DisplayMode() == EColor16MAP ) |
180 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
180 { |
181 gc.SetBrushColor( TRgb::Color16MAP( 255 ) ); |
181 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
182 } |
182 gc.SetBrushColor( TRgb::Color16MAP( 255 ) ); |
183 else if ( Window().DisplayMode() == EColor16MA ) |
183 } |
184 { |
184 else if ( Window().DisplayMode() == EColor16MA ) |
185 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
185 { |
186 gc.SetBrushColor( TRgb::Color16MA( 0 ) ); |
186 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
|
187 gc.SetBrushColor( TRgb::Color16MA( 0 ) ); |
|
188 } |
|
189 } |
|
190 else |
|
191 { |
|
192 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
|
193 gc.SetBrushColor( KRgbBlack ); |
|
194 } |
187 } |
195 |
188 |
196 gc.Clear( aRect ); |
189 gc.Clear( aRect ); |
197 } |
190 } |
198 |
191 |