summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdel Gadllah <adel.gadllah@gmail.com>2014-02-14 13:08:26 +0100
committerAdel Gadllah <adel.gadllah@gmail.com>2014-02-14 13:16:52 +0100
commit197d1703649ea39f226b5a72702a7ec93b201ebc (patch)
treed7fadb0b8380c03dff641478f8faaed8548adc6d
parentf01716f9bc24194db39f3ab886e483cffbf6e36a (diff)
downloadclutter-197d1703649ea39f226b5a72702a7ec93b201ebc.tar.gz
stage_cogl: Don't scale the current_damage when adding to the damage_list
Otherwise we will union the scaled rectange with the clip_region which is unscaled causing us to redraw a larger area.
-rw-r--r--clutter/cogl/clutter-stage-cogl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c
index 168c70b7f..c84dafbaf 100644
--- a/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/cogl/clutter-stage-cogl.c
@@ -476,10 +476,10 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
cairo_rectangle_int_t *current_damage;
current_damage = g_new0 (cairo_rectangle_int_t, 1);
- current_damage->x = clip_region->x * window_scale;
- current_damage->y = clip_region->y * window_scale;
- current_damage->width = clip_region->width * window_scale;
- current_damage->height = clip_region->height * window_scale;
+ current_damage->x = clip_region->x;
+ current_damage->y = clip_region->y;
+ current_damage->width = clip_region->width;
+ current_damage->height = clip_region->height;
stage_cogl->damage_history = g_slist_prepend (stage_cogl->damage_history, current_damage);