Fix color conversion on interpreter

This causes the MSB to be copied into the green channe LSB, causing a
very subtle (almost imposible to see) color distortion.
Dynarecs use their own code path so are not afected.
This commit is contained in:
David Guillen Fandos 2021-11-13 00:52:21 +01:00
parent 6c4ffc4db2
commit 1955336a2b
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@
(value & 0x7FFF)
#else
#define convert_palette(value) \
(((value & 0x1F) << 11) | ((value & 0x03E0) << 1) | (value >> 10))
(((value & 0x1F) << 11) | ((value & 0x03E0) << 1) | ((value >> 10) & 0x1F))
#endif
#define GBA_SCREEN_WIDTH (240)