clutter/cogl: Fix invalidation on non-primary monitors with no buffer age
We passed the view rectangle, we however want a fb-scaled rectangle starting at 0,0. Fixes invalidation on other than the primary monitor when those paths are hit. https://gitlab.gnome.org/GNOME/mutter/merge_requests/898
This commit is contained in:
parent
d47324e8d7
commit
cf89e4d2cd
@ -943,9 +943,16 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
cairo_rectangle_int_t clip;
|
||||||
cairo_region_t *view_region;
|
cairo_region_t *view_region;
|
||||||
|
|
||||||
view_region = cairo_region_create_rectangle (&view_rect);
|
clip = (cairo_rectangle_int_t) {
|
||||||
|
.x = 0,
|
||||||
|
.y = 0,
|
||||||
|
.width = ceilf (view_rect.width * fb_scale),
|
||||||
|
.height = ceilf (view_rect.height * fb_scale)
|
||||||
|
};
|
||||||
|
view_region = cairo_region_create_rectangle (&clip);
|
||||||
paint_stage (stage_cogl, view, view_region);
|
paint_stage (stage_cogl, view, view_region);
|
||||||
cairo_region_destroy (view_region);
|
cairo_region_destroy (view_region);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user