mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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.
This commit is contained in:
parent
f01716f9bc
commit
197d170364
@ -476,10 +476,10 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
|
|||||||
cairo_rectangle_int_t *current_damage;
|
cairo_rectangle_int_t *current_damage;
|
||||||
|
|
||||||
current_damage = g_new0 (cairo_rectangle_int_t, 1);
|
current_damage = g_new0 (cairo_rectangle_int_t, 1);
|
||||||
current_damage->x = clip_region->x * window_scale;
|
current_damage->x = clip_region->x;
|
||||||
current_damage->y = clip_region->y * window_scale;
|
current_damage->y = clip_region->y;
|
||||||
current_damage->width = clip_region->width * window_scale;
|
current_damage->width = clip_region->width;
|
||||||
current_damage->height = clip_region->height * window_scale;
|
current_damage->height = clip_region->height;
|
||||||
|
|
||||||
stage_cogl->damage_history = g_slist_prepend (stage_cogl->damage_history, current_damage);
|
stage_cogl->damage_history = g_slist_prepend (stage_cogl->damage_history, current_damage);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user