@@ -180,13 +180,9 @@ class MCPlayerVolumePopup: public MCStack
180180 MCRectangle t_volume_well;
181181 t_volume_well = getVolumeBarPartRect (dirty, kMCPlayerControllerPartVolumeWell );
182182
183- MCGBitmapEffects t_effects;
184- t_effects . has_drop_shadow = false ;
185- t_effects . has_outer_glow = false ;
186- t_effects . has_inner_glow = false ;
183+ MCGBitmapEffects t_effects = MCGBitmapEffects ();
187184 t_effects . has_inner_shadow = true ;
188- t_effects . has_color_overlay = false ;
189-
185+
190186 MCGShadowEffect t_inner_shadow;
191187 t_inner_shadow . color = MCGColorMakeRGBA (0 .0f , 0 .0f , 0 .0f , 56.0 / 255.0 );
192188 t_inner_shadow . blend_mode = kMCGBlendModeClear ;
@@ -526,13 +522,9 @@ class MCPlayerRatePopup: public MCStack
526522 MCRectangle t_rate_well;
527523 t_rate_well = getRateBarPartRect (dirty, kMCPlayerControllerPartRateWell );
528524
529- MCGBitmapEffects t_effects;
530- t_effects . has_drop_shadow = false ;
531- t_effects . has_outer_glow = false ;
532- t_effects . has_inner_glow = false ;
525+ MCGBitmapEffects t_effects = MCGBitmapEffects ();
533526 t_effects . has_inner_shadow = true ;
534- t_effects . has_color_overlay = false ;
535-
527+
536528 MCGShadowEffect t_inner_shadow;
537529 t_inner_shadow . color = MCGColorMakeRGBA (0 .0f , 0 .0f , 0 .0f , 56.0 / 255.0 );
538530 t_inner_shadow . blend_mode = kMCGBlendModeClear ;
@@ -2590,13 +2582,9 @@ void MCPlayer::drawControllerWellButton(MCGContextRef p_gcontext)
25902582 t_drawn_well_rect . x += 4 ;
25912583 t_drawn_well_rect . width -= 10 ;
25922584
2593- MCGBitmapEffects t_effects;
2594- t_effects . has_drop_shadow = false ;
2595- t_effects . has_outer_glow = false ;
2596- t_effects . has_inner_glow = false ;
2597- t_effects . has_inner_shadow = true ;
2598- t_effects . has_color_overlay = false ;
2599-
2585+ MCGBitmapEffects t_effects = MCGBitmapEffects ();
2586+ t_effects . has_inner_shadow = true ;
2587+
26002588 MCGShadowEffect t_inner_shadow;
26012589 t_inner_shadow . color = MCGColorMakeRGBA (56.0 / 255.0 , 56.0 / 255.0 , 56.0 / 255.0 , 56.0 / 255.0 );
26022590 t_inner_shadow . blend_mode = kMCGBlendModeClear ;
0 commit comments