gl renderer: Properly flip scaled fallback nodes

Fixes cairo nodes in hidpi setups
This commit is contained in:
Timm Bäder 2019-05-30 09:12:24 +02:00
parent d691393f5f
commit 78ee4c0677

View File

@ -497,7 +497,7 @@ render_fallback_node (GskGLRenderer *self,
/* We draw upside down here, so it matches what GL does. */ /* We draw upside down here, so it matches what GL does. */
cairo_save (cr); cairo_save (cr);
cairo_scale (cr, 1, -1); cairo_scale (cr, 1, -1);
cairo_translate (cr, 0, -surface_height); cairo_translate (cr, 0, -surface_height / scale);
cairo_set_source_surface (cr, rendered_surface, 0, 0); cairo_set_source_surface (cr, rendered_surface, 0, 0);
cairo_rectangle (cr, 0, 0, surface_width, surface_height); cairo_rectangle (cr, 0, 0, surface_width, surface_height);
cairo_fill (cr); cairo_fill (cr);