[gtk+/wip/baedert/gl: 2/4] gl renderer: Fix rounded clips in hidpi



commit 254553d0bdca8a890ba3f8ca26c979838caf4df9
Author: Timm Bäder <mail baedert org>
Date:   Sat Dec 9 08:59:51 2017 +0100

    gl renderer: Fix rounded clips in hidpi

 gsk/gl/gskglrenderer.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 7756e69..651b1d5 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -720,20 +720,9 @@ render_rounded_clip_node (GskGLRenderer   *self,
   GskRoundedRect prev_clip;
   GskRenderNode *child = gsk_rounded_clip_node_get_child (node);
   const GskRoundedRect *rounded_clip = gsk_rounded_clip_node_peek_clip (node);
-  graphene_rect_t transformed_clip;
-  graphene_rect_t intersection;
   GskRoundedRect child_clip;
 
-  transformed_clip = rounded_clip->bounds;
-  graphene_matrix_transform_bounds (&builder->current_modelview, &transformed_clip, &transformed_clip);
-
-  graphene_rect_intersection (&transformed_clip, &builder->current_clip.bounds,
-                              &intersection);
-  gsk_rounded_rect_init (&child_clip, &intersection,
-                         &rounded_clip->corner[0],
-                         &rounded_clip->corner[1],
-                         &rounded_clip->corner[2],
-                         &rounded_clip->corner[3]);
+  rounded_rect_intersect (self, builder, rounded_clip, &child_clip);
 
   prev_clip = ops_set_clip (builder, &child_clip);
   gsk_gl_renderer_add_render_ops (self, child, builder);


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