summaryrefslogtreecommitdiff
path: root/types/fx/shadow_data.c
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2024-01-02 01:19:48 +0100
committerErik Reider <[email protected]>2024-01-04 02:11:25 +0100
commitc15af4a182314d8384fc6b28e7c3fc58c0352b83 (patch)
tree841c17acede5ead7b8c08c9668d0b148ad5c26e4 /types/fx/shadow_data.c
parent1a6918f948be034e65c50af8969d090b5e762dc1 (diff)
Added back shadow effect
Diffstat (limited to 'types/fx/shadow_data.c')
-rw-r--r--types/fx/shadow_data.c5
1 files changed, 2 insertions, 3 deletions
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;
}