Also fix RBGA4 (untested)

This commit is contained in:
Aurora Wright 2017-09-23 22:32:05 +02:00
parent a39adc8ac1
commit f27cdb4543

View File

@ -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);