From 79cc8fb261472a0eb738306f95dd0128b8ca46fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 2 Dec 2018 09:39:55 +0100 Subject: [PATCH] gl renderer: Apply offset with scale --- gsk/gl/gskglrenderops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsk/gl/gskglrenderops.c b/gsk/gl/gskglrenderops.c index c391578567..28926f4ece 100644 --- a/gsk/gl/gskglrenderops.c +++ b/gsk/gl/gskglrenderops.c @@ -109,6 +109,7 @@ ops_transform_bounds_modelview (const RenderOpBuilder *builder, const graphene_rect_t *src, graphene_rect_t *dst) { + const float scale = ops_get_scale (builder); const MatrixStackEntry *head; g_assert (builder->mv_stack != NULL); @@ -130,7 +131,7 @@ ops_transform_bounds_modelview (const RenderOpBuilder *builder, dst); } - graphene_rect_offset (dst, builder->dx, builder->dy); + graphene_rect_offset (dst, builder->dx * scale, builder->dy * scale); } gboolean