[gtk/wip/chergert/glproto: 843/920] check current clip, not new clip
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 843/920] check current clip, not new clip
- Date: Mon, 8 Feb 2021 19:15:45 +0000 (UTC)
commit 395ae39bc5d128d5eb6c1501a740e41dca18c47d
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 1 16:23:53 2021 -0800
check current clip, not new clip
gsk/next/gskglrenderjob.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 11585e516e..4bcf496727 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1397,13 +1397,13 @@ gsk_gl_render_job_visit_rounded_clip_node (GskGLRenderJob *job,
gsk_gl_render_job_transform_bounds (job, &clip->bounds, &transformed_clip.bounds);
- for (guint i = 0; i < 4; i++)
+ for (guint i = 0; i < G_N_ELEMENTS (clip->corner); i++)
{
transformed_clip.corner[i].width = clip->corner[i].width * scale_x;
transformed_clip.corner[i].height = clip->corner[i].height * scale_y;
}
- if (gsk_rounded_rect_is_rectilinear (clip))
+ if (gsk_rounded_rect_is_rectilinear (¤t_clip))
{
GskRoundedRect intersected_clip;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]