gl renderer: Fix hidpi fallback rendering

When allocating the surface, take scale into consideration.
This commit is contained in:
Alexander Larsson 2017-03-19 19:24:50 +01:00
parent a68685bb16
commit 9e12fc7853

View File

@ -779,8 +779,9 @@ gsk_gl_renderer_add_render_item (GskGLRenderer *self,
cairo_t *cr;
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
ceil (node->bounds.size.width),
ceil (node->bounds.size.height));
item.size.width,
item.size.height);
cairo_surface_set_device_scale (surface, scale_factor, scale_factor);
cr = cairo_create (surface);
cairo_translate (cr, -node->bounds.origin.x, -node->bounds.origin.y);