[clutter] clutter-offscreen-effect: use target size when setting up the viewport
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] clutter-offscreen-effect: use target size when setting up the viewport
- Date: Fri, 20 May 2011 11:27:36 +0000 (UTC)
commit e59fff7a3f2d490b7a9b8dc8e149dfc20831a141
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date: Fri May 20 11:15:07 2011 +0200
clutter-offscreen-effect: use target size when setting up the viewport
https://bugzilla.gnome.org/show_bug.cgi?id=650650
clutter/clutter-offscreen-effect.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/clutter/clutter-offscreen-effect.c b/clutter/clutter-offscreen-effect.c
index cd7992e..3d801f8 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]