From ec02a8808e60f0ce57f0bd45cb6cfe09b21c59f2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 19 Feb 2011 09:17:25 +0000 Subject: [PATCH] deform-effect: Use the FBO target size The ClutterDeformEffect sub-classes are effectively deforming the texture target of an FBO, not the actor itself. Thus, we need to use the FBO's size, and not the actor's allocated size, given that the actor might be transformed prior to applying an effect. http://bugzilla.clutter-project.org/show_bug.cgi?id=2571 --- clutter/clutter-deform-effect.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-deform-effect.c b/clutter/clutter-deform-effect.c index f90e70a93..9d6a7f3c5 100644 --- a/clutter/clutter-deform-effect.c +++ b/clutter/clutter-deform-effect.c @@ -62,6 +62,7 @@ #include "clutter-debug.h" #include "clutter-enum-types.h" +#include "clutter-offscreen-effect-private.h" #include "clutter-private.h" #define DEFAULT_N_TILES 32 @@ -182,7 +183,9 @@ clutter_deform_effect_paint_target (ClutterOffscreenEffect *effect) actor = clutter_actor_meta_get_actor (CLUTTER_ACTOR_META (effect)); opacity = clutter_actor_get_paint_opacity (actor); - clutter_actor_get_size (actor, &width, &height); + + if (!_clutter_offscreen_effect_get_target_size (effect, &width, &height)) + clutter_actor_get_size (actor, &width, &height); for (i = 0; i < priv->y_tiles + 1; i++) {