summaryrefslogtreecommitdiff
path: root/clutter/clutter-offscreen-effect.c
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-05-20 11:15:07 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-05-20 13:27:01 +0200
commite59fff7a3f2d490b7a9b8dc8e149dfc20831a141 (patch)
tree5ee5e10018d34745e17ccf3cf7cfd61b5dd40401 /clutter/clutter-offscreen-effect.c
parentc18a83baa3239cc635be0732e8d0a859604b6d4c (diff)
downloadclutter-e59fff7a3f2d490b7a9b8dc8e149dfc20831a141.tar.gz
clutter-offscreen-effect: use target size when setting up the viewport
https://bugzilla.gnome.org/show_bug.cgi?id=650650
Diffstat (limited to 'clutter/clutter-offscreen-effect.c')
-rw-r--r--clutter/clutter-offscreen-effect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clutter/clutter-offscreen-effect.c b/clutter/clutter-offscreen-effect.c
index cd7992e12..3d801f805 100644
--- a/clutter/clutter-offscreen-effect.c
+++ b/clutter/clutter-offscreen-effect.c
@@ -273,14 +273,14 @@ clutter_offscreen_effect_pre_paint (ClutterEffect *effect)
xexpand = 0.f;
if (priv->x_offset < 0.f)
xexpand = -priv->x_offset;
- if (priv->x_offset + fbo_width > width)
- xexpand = MAX (xexpand, (priv->x_offset + fbo_width) - width);
+ if (priv->x_offset + priv->target_width > width)
+ xexpand = MAX (xexpand, (priv->x_offset + priv->target_width) - width);
yexpand = 0.f;
if (priv->y_offset < 0.f)
yexpand = -priv->y_offset;
- if (priv->y_offset + fbo_height > height)
- yexpand = MAX (yexpand, (priv->y_offset + fbo_height) - height);
+ if (priv->y_offset + priv->target_height > height)
+ yexpand = MAX (yexpand, (priv->y_offset + priv->target_height) - height);
/* Set the viewport */
cogl_set_viewport (-(priv->x_offset + xexpand), -(priv->y_offset + yexpand),