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:
parent
6c4ffc4db2
commit
1955336a2b
2
common.h
2
common.h
|
@ -86,7 +86,7 @@
|
||||||
(value & 0x7FFF)
|
(value & 0x7FFF)
|
||||||
#else
|
#else
|
||||||
#define convert_palette(value) \
|
#define convert_palette(value) \
|
||||||
(((value & 0x1F) << 11) | ((value & 0x03E0) << 1) | (value >> 10))
|
(((value & 0x1F) << 11) | ((value & 0x03E0) << 1) | ((value >> 10) & 0x1F))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GBA_SCREEN_WIDTH (240)
|
#define GBA_SCREEN_WIDTH (240)
|
||||||
|
|
Loading…
Reference in New Issue