mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-04-30 01:49:40 +02:00
Apply proper color correction
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user