[clutter/clutter-1.18] stage_cogl: Don't scale the current_damage when adding to the damage_list



commit 197d1703649ea39f226b5a72702a7ec93b201ebc
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Fri Feb 14 13:08:26 2014 +0100

    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 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c
index 168c70b..c84dafb 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]