From 55f8222855b7775535685b7c91f2ccb853d0c838 Mon Sep 17 00:00:00 2001 From: Will McKinnon Date: Wed, 26 Oct 2022 00:25:33 -0400 Subject: refactor: improved rounded corner shader --- include/sway/desktop/fx_renderer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/sway/desktop/fx_renderer.h') diff --git a/include/sway/desktop/fx_renderer.h b/include/sway/desktop/fx_renderer.h index cc518284..39c1a25b 100644 --- a/include/sway/desktop/fx_renderer.h +++ b/include/sway/desktop/fx_renderer.h @@ -41,11 +41,10 @@ struct fx_renderer { GLint is_top_right; GLint is_bottom_left; GLint is_bottom_right; - GLint width; - GLint height; GLint position; GLint radius; - GLint thickness; + GLint half_size; + GLint half_thickness; } corner; struct gles2_tex_shader tex_rgba; struct gles2_tex_shader tex_rgbx; -- cgit v1.2.3