From 78ee4c06779abedcc0c80684a38e70f3c8bb3081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 30 May 2019 09:12:24 +0200 Subject: [PATCH] gl renderer: Properly flip scaled fallback nodes Fixes cairo nodes in hidpi setups --- gsk/gl/gskglrenderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index 43b9b1caa5..98e28a8034 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -497,7 +497,7 @@ render_fallback_node (GskGLRenderer *self, /* We draw upside down here, so it matches what GL does. */ cairo_save (cr); 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_rectangle (cr, 0, 0, surface_width, surface_height); cairo_fill (cr);