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_i.h | |
parent | a10e7cc8582114267ab474a0049619b510199322 (diff) |
Rename RGB and HSV structs (#24471)
Diffstat (limited to 'quantum/rgb_matrix/animations/runners/effect_runner_i.h')
-rw-r--r-- | quantum/rgb_matrix/animations/runners/effect_runner_i.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_i.h b/quantum/rgb_matrix/animations/runners/effect_runner_i.h index b4de2992b6..670fd83ebe 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_i.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_i.h @@ -1,6 +1,6 @@ #pragma once -typedef HSV (*i_f)(HSV hsv, uint8_t i, uint8_t time); +typedef hsv_t (*i_f)(hsv_t hsv, uint8_t i, uint8_t time); bool effect_runner_i(effect_params_t* params, i_f effect_func) { RGB_MATRIX_USE_LIMITS(led_min, led_max); @@ -8,7 +8,7 @@ bool effect_runner_i(effect_params_t* params, i_f effect_func) { uint8_t time = scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed / 4, 1)); for (uint8_t i = led_min; i < led_max; i++) { RGB_MATRIX_TEST_LED_FLAGS(); - RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time)); + rgb_t rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time)); rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); } return rgb_matrix_check_finished_leds(led_max); |