diff options
author | Ryan <fauxpark@gmail.com> | 2024-10-12 10:10:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-12 00:10:02 +0100 |
commit | 6129af93f497077a994e8e41473e2bd3d6ea5e67 (patch) | |
tree | 68de5019339936b281fe337a5d8e5273f8b7dec5 /quantum/rgb_matrix/animations/runners/effect_runner_reactive.h | |
parent | a10e7cc8582114267ab474a0049619b510199322 (diff) |
Rename RGB and HSV structs (#24471)
Diffstat (limited to 'quantum/rgb_matrix/animations/runners/effect_runner_reactive.h')
-rw-r--r-- | quantum/rgb_matrix/animations/runners/effect_runner_reactive.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h b/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h index f9584d7071..958db170ae 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h @@ -2,7 +2,7 @@ #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED -typedef HSV (*reactive_f)(HSV hsv, uint16_t offset); +typedef hsv_t (*reactive_f)(hsv_t hsv, uint16_t offset); bool effect_runner_reactive(effect_params_t* params, reactive_f effect_func) { RGB_MATRIX_USE_LIMITS(led_min, led_max); @@ -20,7 +20,7 @@ bool effect_runner_reactive(effect_params_t* params, reactive_f effect_func) { } uint16_t offset = scale16by8(tick, qadd8(rgb_matrix_config.speed, 1)); - RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, offset)); + rgb_t rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, offset)); rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); } return rgb_matrix_check_finished_leds(led_max); |