From 197d1703649ea39f226b5a72702a7ec93b201ebc Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 14 Feb 2014 13:08:26 +0100 Subject: [PATCH] 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. --- clutter/cogl/clutter-stage-cogl.c | 8 ++++---- 1 file 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);