File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ uint16_t FontGetMessageWidth(const char *message);
38
38
uint16_t hankakuSearch (uint8_t code);
39
39
uint16_t kanjiSearch (uint16_t code);
40
40
uint8_t kanjiGetWidth (uint16_t code);
41
- uint32_t HSV2RGB (uint8_t hsv[ 3 ]);
41
+ uint32_t HSV2RGB (uint8_t hsva[ 4 ]);
42
42
43
43
void JUTFontSetup (uint32_t index);
44
44
uint16_t JUTFont_CodeToGlyph (uint16_t code);
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ void displayArtAttackHitboxes()
78
78
}
79
79
80
80
// Set the initial color to use for the lines of the hitboxes
81
- uint8_t HSV [4 ]; // Extra slot at the end
82
- *reinterpret_cast <uint32_t *>(&HSV ) = 0x00FFCCFF ; // RGBA value is 0xCC0000FF
81
+ uint8_t HSVA [4 ];
82
+ *reinterpret_cast <uint32_t *>(&HSVA ) = 0x00FFCCFF ; // RGBA value is 0xCC0000FF
83
83
84
84
// Get the address of the write gather pipe, and handle the value at the address as a float
85
85
volatile float *WriteGatherPipe = reinterpret_cast <float *>(0xCC008000 );
@@ -122,8 +122,8 @@ void displayArtAttackHitboxes()
122
122
continue ;
123
123
}
124
124
125
- // Get the RGB equivalent of the HSV value; Alpha is discarded
126
- uint32_t HitboxLineColor = ttyd::fontmgr::HSV2RGB (HSV );
125
+ // Get the RGBA equivalent of the HSVA value
126
+ uint32_t HitboxLineColor = ttyd::fontmgr::HSV2RGB (HSVA );
127
127
128
128
// Set the color of the lines of the current hitbox
129
129
gc::gx::GXSetChanMatColor (gc::gx::GX_COLOR0A0, reinterpret_cast <uint8_t *>(&HitboxLineColor));
@@ -240,7 +240,7 @@ void displayArtAttackHitboxes()
240
240
}
241
241
242
242
// Adjust the hue for the lines of the next hitbox
243
- HSV [0 ] += 45 ;
243
+ HSVA [0 ] += 45 ;
244
244
}
245
245
}
246
246
}
You can’t perform that action at this time.
0 commit comments