summaryrefslogtreecommitdiff
path: root/quantum/led_matrix/animations/solid_reactive_wide.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_reactive_wide.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_reactive_wide.h')
-rw-r--r--quantum/led_matrix/animations/solid_reactive_wide.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/led_matrix/animations/solid_reactive_wide.h b/quantum/led_matrix/animations/solid_reactive_wide.h
index 922e32fe5f..d683b02510 100644
--- a/quantum/led_matrix/animations/solid_reactive_wide.h
+++ b/quantum/led_matrix/animations/solid_reactive_wide.h
@@ -1,11 +1,11 @@
#ifdef LED_MATRIX_KEYREACTIVE_ENABLED
# if !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE)
-# ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
+# ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
LED_MATRIX_EFFECT(SOLID_REACTIVE_WIDE)
# endif
-# ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
+# ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
LED_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE)
# endif
@@ -17,11 +17,11 @@ static uint8_t SOLID_REACTIVE_WIDE_math(uint8_t val, int16_t dx, int16_t dy, uin
return qadd8(val, 255 - effect);
}
-# ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
+# ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
bool SOLID_REACTIVE_WIDE(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_WIDE_math); }
# endif
-# ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
+# ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_WIDE_math); }
# endif