diff options
| author | XScorpion2 <rcalt2vt@gmail.com> | 2019-05-07 18:22:46 -0500 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-05-07 16:22:46 -0700 |
| commit | af89752bffbaf5dcea30ea16be66b4d682701bc4 (patch) | |
| tree | c82f2bc25409159a44778379db8b3a35afc47b8a /quantum/rgb_matrix_animations/raindrops_anim.h | |
| parent | c7f8548d9af2045996294602d2a4bd9a214ae23c (diff) | |
| download | qmk_firmware-af89752bffbaf5dcea30ea16be66b4d682701bc4.tar.gz qmk_firmware-af89752bffbaf5dcea30ea16be66b4d682701bc4.zip | |
rgb_led struct conversion (aka: Per led (key) type rgb matrix effects - part 2) (#5783)
* Initial conversion of the rgb_led struct
* Converting last keyboard & updating effects to take advantage of the new structure
* New struct should not be const
* Updated docs
* Changing define ___ for no led to NO_LED
* Missed converting some keymap usages of the old struct layout
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 |
