From c15af4a182314d8384fc6b28e7c3fc58c0352b83 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Tue, 2 Jan 2024 01:19:48 +0100 Subject: Added back shadow effect --- types/fx/shadow_data.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'types/fx') diff --git a/types/fx/shadow_data.c b/types/fx/shadow_data.c index 0c2d1d2..fae76cf 100644 --- a/types/fx/shadow_data.c +++ b/types/fx/shadow_data.c @@ -5,14 +5,13 @@ #include "wlr/util/log.h" struct shadow_data shadow_data_get_default(void) { - static float default_shadow_color[] = {0.0f, 0.0f, 0.0f, 0.5f}; return (struct shadow_data) { .blur_sigma = 20, - .color = default_shadow_color, + .color = {0.0f, 0.0f, 0.0f, 0.5f}, .enabled = false, }; } bool scene_buffer_has_shadow(struct shadow_data *data) { - return data->enabled && data->blur_sigma > 0 && data->color[3] > 0.0; + return data->enabled && data->blur_sigma > 0 && data->color.a > 0.0; } -- cgit v1.2.3