summaryrefslogtreecommitdiff
path: root/types/fx
diff options
context:
space:
mode:
Diffstat (limited to 'types/fx')
-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;
}