[gtk] gl renderer: Fix hidpi transform nodes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Fix hidpi transform nodes
- Date: Thu, 10 Jan 2019 16:18:12 +0000 (UTC)
commit cfa440bbaec8dacc658012a2970bca0601f700eb
Author: Timm Bäder <mail baedert org>
Date: Sun Jan 6 10:59:01 2019 +0100
gl renderer: Fix hidpi transform nodes
gsk/gl/gskglrenderer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 945c4dfc5a..3936e83af3 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -779,12 +779,14 @@ render_transform_node (GskGLRenderer *self,
GskRenderNode *node,
RenderOpBuilder *builder)
{
+ const float scale = ops_get_scale (builder);
GskRenderNode *child = gsk_transform_node_get_child (node);
graphene_matrix_t transform, transformed_mv;
graphene_matrix_init_from_matrix (&transform, gsk_transform_node_peek_transform (node));
graphene_matrix_multiply (&transform, builder->current_modelview, &transformed_mv);
- graphene_matrix_translate (&transformed_mv, &(graphene_point3d_t) { builder->dx, builder->dy, 0});
+ graphene_matrix_translate (&transformed_mv,
+ &(graphene_point3d_t) { builder->dx * scale, builder->dy * scale, 0});
/* We just added the offset to the new modelview matrix, so the following
* cases dont' have to care about builder->dx/dy! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]