StShadowHelper: properly use the actor's box to paint the shadow

We're using an unitialized box resulting in an undefined shadow box
size.

_st_paint_shadow_with_opacity() already computes the shadow's bounding
box from the source actor's box so we just need to pass that along.

https://bugzilla.gnome.org/show_bug.cgi?id=767954
This commit is contained in:
Rui Matos 2016-06-22 20:57:17 +02:00
parent a69a9ba51a
commit 3e93a1bdd6

View File

@ -287,13 +287,8 @@ st_shadow_helper_paint (StShadowHelper *helper,
ClutterActorBox *actor_box, ClutterActorBox *actor_box,
guint8 paint_opacity) guint8 paint_opacity)
{ {
ClutterActorBox allocation;
float width, height;
clutter_actor_box_get_size (actor_box, &width, &height);
_st_paint_shadow_with_opacity (helper->shadow, _st_paint_shadow_with_opacity (helper->shadow,
helper->pipeline, helper->pipeline,
&allocation, actor_box,
paint_opacity); paint_opacity);
} }