From 1955336a2b83a5a9b5f1baf279dc871dd72a74a5 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Sat, 13 Nov 2021 00:52:21 +0100 Subject: [PATCH] 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. --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index abbac55..059beec 100644 --- a/common.h +++ b/common.h @@ -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)