Commit 32e02b4
authored
Fix tint color RGB mode conversion (#2200)
The game's code looks weird because the switch case forgot to add break.
Has very little impact on the vanilla game:
| TintColor | RGB565 Before | RGB565 After | RGB24 Before | RGB24 After
|
| - | - | - | - | - |
| IronCurtain | 0x0000 | 0x0000 | `#000000` | `#000000` |
| ForceShield | 0x0018 | 0x0018 | `#0000C6` | `#0000C6` |
| Berserk | 0xE000 | 0xC000 | `#E70000` | `#C60000` |
Vanilla Berserk tint in game:
Before | After
---|---
<img width="320" alt="before"
src="https://github.com/user-attachments/assets/05755945-2018-4fdc-8c92-ea70101189ca"
/> | <img width="320" alt="after"
src="https://github.com/user-attachments/assets/f70d114b-f544-4f9c-b1c6-004b07faf63b"
/>
---
Update: Custom tint color for better comparison, R=21, G=21, B=0
| RGB565 Before | RGB565 After | RGB24 Before | RGB24 After |
| - | - | - | - |
| 0xFFE0 | 0xAAA0 | `#FFFF00` | `#AD5500` |
Custom tint in game:
Before | After
---|---
<img width="320" alt="before"
src="https://github.com/user-attachments/assets/08349c6e-83b7-4d82-81ed-e265c943512b"
/> | <img width="320" alt="after"
src="https://github.com/user-attachments/assets/06fcc4f5-777c-4367-9a94-a2a2d11ea392"
/>1 parent c937f30 commit 32e02b4
2 files changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
| |||
0 commit comments