diff options
Diffstat (limited to 'quantum/led_matrix/animations/solid_splash_anim.h')
-rw-r--r-- | quantum/led_matrix/animations/solid_splash_anim.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/led_matrix/animations/solid_splash_anim.h b/quantum/led_matrix/animations/solid_splash_anim.h index d95889b81..cf599c8fe 100644 --- a/quantum/led_matrix/animations/solid_splash_anim.h +++ b/quantum/led_matrix/animations/solid_splash_anim.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_LED_MATRIX_SOLID_SPLASH) || !defined(DISABLE_LED_MATRIX_SOLID_MULTISPLASH) | 2 | # if !defined(DISABLE_LED_MATRIX_SOLID_SPLASH) || !defined(DISABLE_LED_MATRIX_SOLID_MULTISPLASH) |
3 | 3 | ||
4 | # ifndef DISABLE_LED_MATRIX_SOLID_SPLASH | 4 | # ifdef ENABLE_LED_MATRIX_SOLID_SPLASH |
5 | LED_MATRIX_EFFECT(SOLID_SPLASH) | 5 | LED_MATRIX_EFFECT(SOLID_SPLASH) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_LED_MATRIX_SOLID_MULTISPLASH | 8 | # ifdef ENABLE_LED_MATRIX_SOLID_MULTISPLASH |
9 | LED_MATRIX_EFFECT(SOLID_MULTISPLASH) | 9 | LED_MATRIX_EFFECT(SOLID_MULTISPLASH) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -17,11 +17,11 @@ uint8_t SOLID_SPLASH_math(uint8_t val, int16_t dx, int16_t dy, uint8_t dist, uin | |||
17 | return qadd8(val, 255 - effect); | 17 | return qadd8(val, 255 - effect); |
18 | } | 18 | } |
19 | 19 | ||
20 | # ifndef DISABLE_LED_MATRIX_SOLID_SPLASH | 20 | # ifdef ENABLE_LED_MATRIX_SOLID_SPLASH |
21 | bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } | 21 | bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } |
22 | # endif | 22 | # endif |
23 | 23 | ||
24 | # ifndef DISABLE_LED_MATRIX_SOLID_MULTISPLASH | 24 | # ifdef ENABLE_LED_MATRIX_SOLID_MULTISPLASH |
25 | bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } | 25 | bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } |
26 | # endif | 26 | # endif |
27 | 27 | ||