[gtk+/wip/baedert/gl: 79/86] gl renderer: Fix rounded clips in hidpi
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 79/86] gl renderer: Fix rounded clips in hidpi
- Date: Sat, 9 Dec 2017 18:08:12 +0000 (UTC)
commit 736318d6ab8260e843b15119a7524769d4da2a28
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]