diff options
Diffstat (limited to 'quantum/rgb_matrix_animations/raindrops_anim.h')
-rw-r--r-- | quantum/rgb_matrix_animations/raindrops_anim.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/rgb_matrix_animations/raindrops_anim.h b/quantum/rgb_matrix_animations/raindrops_anim.h index 0e3a87864..4ce1d65e5 100644 --- a/quantum/rgb_matrix_animations/raindrops_anim.h +++ b/quantum/rgb_matrix_animations/raindrops_anim.h | |||
@@ -3,10 +3,11 @@ | |||
3 | #include "rgb_matrix_types.h" | 3 | #include "rgb_matrix_types.h" |
4 | 4 | ||
5 | extern rgb_counters_t g_rgb_counters; | 5 | extern rgb_counters_t g_rgb_counters; |
6 | extern led_config_t g_led_config; | ||
6 | extern rgb_config_t rgb_matrix_config; | 7 | extern rgb_config_t rgb_matrix_config; |
7 | 8 | ||
8 | static void raindrops_set_color(int i, effect_params_t* params) { | 9 | static void raindrops_set_color(int i, effect_params_t* params) { |
9 | if (!HAS_ANY_FLAGS(g_rgb_leds[i].flags, params->flags)) return; | 10 | if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return; |
10 | HSV hsv = { 0 , rgb_matrix_config.sat, rgb_matrix_config.val }; | 11 | HSV hsv = { 0 , rgb_matrix_config.sat, rgb_matrix_config.val }; |
11 | 12 | ||
12 | // Take the shortest path between hues | 13 | // Take the shortest path between hues |