mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
clutter/deform-effect: Use clutter_offscreen_effect_get_target_size()
We don't read the x/y position anyway. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1474
This commit is contained in:
parent
4435bec347
commit
cce4d75a38
@ -177,7 +177,6 @@ clutter_deform_effect_paint_target (ClutterOffscreenEffect *effect,
|
|||||||
|
|
||||||
if (priv->is_dirty)
|
if (priv->is_dirty)
|
||||||
{
|
{
|
||||||
graphene_rect_t rect;
|
|
||||||
gboolean mapped_buffer;
|
gboolean mapped_buffer;
|
||||||
CoglVertexP3T2C4 *verts;
|
CoglVertexP3T2C4 *verts;
|
||||||
ClutterActor *actor;
|
ClutterActor *actor;
|
||||||
@ -191,12 +190,7 @@ clutter_deform_effect_paint_target (ClutterOffscreenEffect *effect,
|
|||||||
/* if we don't have a target size, fall back to the actor's
|
/* if we don't have a target size, fall back to the actor's
|
||||||
* allocation, though wrong it might be
|
* allocation, though wrong it might be
|
||||||
*/
|
*/
|
||||||
if (clutter_offscreen_effect_get_target_rect (effect, &rect))
|
if (!clutter_offscreen_effect_get_target_size (effect, &width, &height))
|
||||||
{
|
|
||||||
width = graphene_rect_get_width (&rect);
|
|
||||||
height = graphene_rect_get_height (&rect);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
clutter_actor_get_size (actor, &width, &height);
|
clutter_actor_get_size (actor, &width, &height);
|
||||||
|
|
||||||
/* XXX ideally, the sub-classes should tell us what they
|
/* XXX ideally, the sub-classes should tell us what they
|
||||||
|
Loading…
Reference in New Issue
Block a user