Apply proper color correction

This commit is contained in:
Francisco Javier Trujillo Mata
2019-02-02 01:46:42 +01:00
parent baacd5e1b6
commit b98041b145
2 changed files with 2 additions and 2 deletions

View File

@@ -1253,7 +1253,7 @@ void PicoDoHighPal555(int sh, int line, struct PicoEState *est)
for (i = 0; i < 0x40 / 2; i++) {
t = spal[i];
#ifdef USE_BGR555
t = ((t & 0x000e000e)<< 1) | ((t & 0x00e000e0)<<3) | ((t & 0x0e000e00)<<4);
t = ((t & 0x0e000e00)<< 3) | ((t & 0x00e000e0)<<2) | ((t & 0x000e000e)<<1);
#else
t = ((t & 0x000e000e)<<12) | ((t & 0x00e000e0)<<3) | ((t & 0x0e000e00)>>7);
#endif

View File

@@ -259,7 +259,7 @@ void PicoDoHighPal555M4(void)
for (i = 0x20/2; i > 0; i--, spal++, dpal++) {
t = *spal;
#ifdef USE_BGR555
t = ((t & 0x00030003)<< 3) | ((t & 0x000c000c)<<7) | ((t & 0x00300030)<<10);
t = ((t & 0x00300030)<< 9) | ((t & 0x000c000c)<<6) | (t & 0x00030003);
#else
t = ((t & 0x00030003)<<14) | ((t & 0x000c000c)<<7) | ((t & 0x00300030)>>1);
#endif