From f27cdb4543fe63b6b05d8f1950967999c3bdaa44 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Sat, 23 Sep 2017 22:32:05 +0200 Subject: [PATCH] Also fix RBGA4 (untested) --- sysmodules/rosalina/source/draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysmodules/rosalina/source/draw.c b/sysmodules/rosalina/source/draw.c index b8fc14d..c144c1d 100644 --- a/sysmodules/rosalina/source/draw.c +++ b/sysmodules/rosalina/source/draw.c @@ -246,9 +246,9 @@ static inline void Draw_ConvertPixelToBGR8(u8 *dst, const u8 *src, GSPGPU_Frameb case GSP_RGBA4_OES: { u16 px = *(u32 *)src; - blue = px & 0xF; - green = (px >> 4) & 0xF; - red = (px >> 8) & 0xF; + blue = (px >> 4) & 0xF; + green = (px >> 8) & 0xF; + red = (px >> 12) & 0xF; dst[0] = (blue << 4) | (blue >> 4); dst[1] = (green << 4) | (green >> 4);