clutter/stage-cogl: Damage fb using ceiled scaled sizes

https://gitlab.gnome.org/GNOME/mutter/merge_requests/469
This commit is contained in:
Marco Trevisan (Treviño) 2019-03-05 20:05:42 +01:00 committed by Jonas Ådahl
parent 29211c9020
commit 02812fb988

View File

@ -513,8 +513,8 @@ fill_current_damage_history_and_step (ClutterStageView *view)
*current_fb_damage = (cairo_rectangle_int_t) { *current_fb_damage = (cairo_rectangle_int_t) {
.x = 0, .x = 0,
.y = 0, .y = 0,
.width = view_rect.width * fb_scale, .width = ceilf (view_rect.width * fb_scale),
.height = view_rect.height * fb_scale .height = ceilf (view_rect.height * fb_scale)
}; };
view_priv->damage_index++; view_priv->damage_index++;
} }