forked from AuroraMiddleware/gtk
gl renderer: Fix hidpi fallback rendering
When allocating the surface, take scale into consideration.
This commit is contained in:
parent
a68685bb16
commit
9e12fc7853
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user