Commit 9aca65a
Grind main/menu_compa: CompaDraw signed->unsigned char alpha cast (clrlwi byte-mask)
Line 295 SetColor passed the alpha as static_cast<signed char>, but the
target emits a clrlwi r7,r0,24 (unsigned-byte zero-extend) before the
CColor(Uc,Uc,Uc,Uc) constructor call (Ghidra 80160edc row ~571,
__ct__6CColorFUcUcUcUc 4th arg). The sibling SetColor at line 341 already
uses static_cast<unsigned char>; making line 295 consistent matches the
byte-mask the original emitted.
CompaDraw misalign 23 -> 21; unit fuzzy 95.749 -> 95.864.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7fd58d6 commit 9aca65a
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
0 commit comments