aboutsummaryrefslogtreecommitdiff
path: root/keyboards/wekey
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-10-13 05:00:56 +1100
committerGitHub <[email protected]>2024-10-12 19:00:56 +0100
commit9884e4982be942a98cf5bca9360d20cc3fca3e9d (patch)
tree2ec0af3864f1839a8896b25090f8fa7024394fdc /keyboards/wekey
parent5478051d7470efb32783b1c4080a2c3f24ce3c24 (diff)
downloadqmk_firmware-9884e4982be942a98cf5bca9360d20cc3fca3e9d.tar.gz
qmk_firmware-9884e4982be942a98cf5bca9360d20cc3fca3e9d.zip
Rename RGB/HSV structs: keyboard-level code (#24476)
Diffstat (limited to 'keyboards/wekey')
-rw-r--r--keyboards/wekey/we27/rgb_matrix_kb.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/wekey/we27/rgb_matrix_kb.inc b/keyboards/wekey/we27/rgb_matrix_kb.inc
index a7eeffbbe9..167a60fb57 100644
--- a/keyboards/wekey/we27/rgb_matrix_kb.inc
+++ b/keyboards/wekey/we27/rgb_matrix_kb.inc
@@ -6,13 +6,13 @@ RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE2)
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
-static HSV SOLID_REACTIVE_WIDE_math2(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t tick) {
+static hsv_t SOLID_REACTIVE_WIDE_math2(hsv_t hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t tick) {
uint16_t effect = tick - dist > 255 || dist > 32 ? 255 : tick - dist;
hsv.v = qadd8(hsv.v, 255 - effect);
return hsv;
}
-static HSV SOLID_REACTIVE_NEXUS_math2(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t tick) {
+static hsv_t SOLID_REACTIVE_NEXUS_math2(hsv_t hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t tick) {
uint16_t effect = tick - dist > 255 || ((dx > 8 || dx < -8) && (dy > 8 || dy < -8)) ? 255 : tick - dist;
hsv.v = qadd8(hsv.v, 255 - effect);
hsv.h = rgb_matrix_config.hsv.h + dy / 4;