[gtk] gl renderer: Apply offset with scale



commit 79cc8fb261472a0eb738306f95dd0128b8ca46fe
Author: Timm Bäder <mail baedert org>
Date:   Sun Dec 2 09:39:55 2018 +0100

    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


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