aboutsummaryrefslogtreecommitdiff
path: root/quantum/led_matrix/animations/solid_splash_anim.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-08-17 11:19:00 -0700
committerGitHub <noreply@github.com>2021-08-18 04:19:00 +1000
commit7da97c293da851851c204af065a0c8d2f884effd (patch)
treed1ebbc3898f66b570bf6005bdfffe0682efa8240 /quantum/led_matrix/animations/solid_splash_anim.h
parent85351dc23d423d1fa5d23aed8b4b478c49949b46 (diff)
downloadqmk_firmware-7da97c293da851851c204af065a0c8d2f884effd.tar.gz
qmk_firmware-7da97c293da851851c204af065a0c8d2f884effd.zip
Rgb matrix/enable modes explicitly (#13758)
* Change animations to require explicet activation * Add support for legacy config * Make default for now * Add LED Matrix support * change LED Matrix docs
Diffstat (limited to 'quantum/led_matrix/animations/solid_splash_anim.h')
-rw-r--r--quantum/led_matrix/animations/solid_splash_anim.h8
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
5LED_MATRIX_EFFECT(SOLID_SPLASH) 5LED_MATRIX_EFFECT(SOLID_SPLASH)
6# endif 6# endif
7 7
8# ifndef DISABLE_LED_MATRIX_SOLID_MULTISPLASH 8# ifdef ENABLE_LED_MATRIX_SOLID_MULTISPLASH
9LED_MATRIX_EFFECT(SOLID_MULTISPLASH) 9LED_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
21bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } 21bool 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
25bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } 25bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); }
26# endif 26# endif
27 27