[mutter/gbsneto/offscreen-paint-node: 10/14] clutter/deform-effect: Use clutter_offscreen_effect_get_target_size()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/offscreen-paint-node: 10/14] clutter/deform-effect: Use clutter_offscreen_effect_get_target_size()
- Date: Mon, 6 Jul 2020 13:50:17 +0000 (UTC)
commit e7cea462e097081b0381ae5fe34d3c4c89d78d96
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jul 5 18:40:48 2020 -0300
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/1355
clutter/clutter/clutter-deform-effect.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/clutter/clutter/clutter-deform-effect.c b/clutter/clutter/clutter-deform-effect.c
index fbd524690c..eca46e8f93 100644
--- a/clutter/clutter/clutter-deform-effect.c
+++ b/clutter/clutter/clutter-deform-effect.c
@@ -179,7 +179,6 @@ clutter_deform_effect_paint_target (ClutterOffscreenEffect *effect,
if (priv->is_dirty)
{
- graphene_rect_t rect;
gboolean mapped_buffer;
CoglVertexP3T2C4 *verts;
ClutterActor *actor;
@@ -193,12 +192,7 @@ clutter_deform_effect_paint_target (ClutterOffscreenEffect *effect,
/* if we don't have a target size, fall back to the actor's
* allocation, though wrong it might be
*/
- if (clutter_offscreen_effect_get_target_rect (effect, &rect))
- {
- width = graphene_rect_get_width (&rect);
- height = graphene_rect_get_height (&rect);
- }
- else
+ if (!clutter_offscreen_effect_get_target_size (effect, &width, &height))
clutter_actor_get_size (actor, &width, &height);
/* XXX ideally, the sub-classes should tell us what they
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]