[gtk/wip/chergert/glproto] transform rounded rect for uniform border
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] transform rounded rect for uniform border
- Date: Mon, 11 Jan 2021 06:48:46 +0000 (UTC)
commit 82c79dc70274e749bfcf41fa30bbb66d91433a39
Author: Christian Hergert <chergert redhat com>
Date: Sun Jan 10 22:38:05 2021 -0800
transform rounded rect for uniform border
gsk/next/gskglrenderjob.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index e6a533fea7..5c0fc3c2d4 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1125,6 +1125,9 @@ gsk_gl_render_job_visit_uniform_border_node (GskGLRenderJob *job,
const GskRoundedRect *rounded_outline = gsk_border_node_get_outline (node);
const GdkRGBA *colors = gsk_border_node_get_colors (node);
const float *widths = gsk_border_node_get_widths (node);
+ GskRoundedRect outline;
+
+ gsk_gl_render_job_transform_rounded_rect (job, rounded_outline, &outline);
gsk_gl_program_begin_draw (job->driver->inset_shadow,
&job->viewport,
@@ -1134,7 +1137,7 @@ gsk_gl_render_job_visit_uniform_border_node (GskGLRenderJob *job,
job->alpha);
gsk_gl_program_set_uniform_rounded_rect (job->driver->inset_shadow,
UNIFORM_INSET_SHADOW_OUTLINE_RECT,
- rounded_outline);
+ &outline);
gsk_gl_program_set_uniform_color (job->driver->inset_shadow,
UNIFORM_INSET_SHADOW_COLOR,
&colors[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]