[gtk/wip/baedert/for-master: 23/25] gl renderer: Fix scaled fallback node drawing



commit 36832c35039085f588172c694bba033bd1a57ea4
Author: Timm Bäder <mail baedert org>
Date:   Sun Oct 6 17:45:54 2019 +0200

    gl renderer: Fix scaled fallback node drawing

 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 fb4ecdefe0..089075e4a2 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -514,7 +514,7 @@ render_fallback_node (GskGLRenderer       *self,
   cairo_scale (cr, 1, -1);
   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_rectangle (cr, 0, 0, surface_width / scale, surface_height / scale);
   cairo_fill (cr);
   cairo_restore (cr);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]