[gtk/wip/chergert/glproto: 289/526] use macro helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 289/526] use macro helper
- Date: Tue, 16 Feb 2021 01:14:32 +0000 (UTC)
commit 626c009556fba02dece6d9baf17834243718e7ed
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 20 22:19:26 2021 -0800
use macro helper
gsk/next/gskglrenderjob.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index f0c84a7203..fdb45c1067 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -29,6 +29,7 @@
#include <gsk/gskglshaderprivate.h>
#include <gdk/gdktextureprivate.h>
#include <gsk/gsktransformprivate.h>
+#include <gsk/gskroundedrectprivate.h>
#include <math.h>
#include <string.h>
@@ -3419,7 +3420,7 @@ gsk_gl_render_job_visit_node_with_offscreen (GskGLRenderJob *job,
gsk_gl_render_job_set_modelview (job, gsk_transform_scale (NULL, scale_x, scale_y));
if (offscreen->reset_clip)
- gsk_gl_render_job_push_clip (job, &(GskRoundedRect) { .bounds = job->viewport });
+ gsk_gl_render_job_push_clip (job, &GSK_ROUNDED_RECT_INIT_FROM_RECT (job->viewport));
job->offset_x = 0;
job->offset_y = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]