renderer-x11-nested: Use rounded width/heights for fb size

https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
Marco Trevisan (Treviño) 2018-11-22 00:59:59 -06:00 committed by Jonas Ådahl
parent eacf2f2187
commit c5471e5b8b

View File

@ -202,8 +202,8 @@ meta_renderer_x11_nested_create_view (MetaRenderer *renderer,
width = logical_monitor->rect.width; width = logical_monitor->rect.width;
height = logical_monitor->rect.height; height = logical_monitor->rect.height;
} }
width *= view_scale; width = roundf (width * view_scale);
height *= view_scale; height = roundf (width * view_scale);
fake_onscreen = create_offscreen (cogl_context, width, height); fake_onscreen = create_offscreen (cogl_context, width, height);