mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
rendering, fix bgr555 output mode
NB not done for ARM asm since no target uses bgr555
This commit is contained in:
parent
42077979ca
commit
16b11d9171
4 changed files with 43 additions and 42 deletions
|
@ -339,11 +339,11 @@ void PicoDoHighPal555M4(void)
|
|||
t = *spal;
|
||||
#ifdef USE_BGR555
|
||||
t = ((t & 0x00030003)<< 3) | ((t & 0x000c000c)<<6) | ((t & 0x00300030)<<9);
|
||||
t |= (t >> 2) | ((t >> 4) & 0x04210421);
|
||||
#else
|
||||
t = ((t & 0x00030003)<<14) | ((t & 0x000c000c)<<7) | ((t & 0x00300030)>>1);
|
||||
t |= (t >> 2) | ((t >> 4) & 0x08610861);
|
||||
#endif
|
||||
t |= t >> 2;
|
||||
t |= (t >> 4) & 0x08610861;
|
||||
*dpal = t;
|
||||
}
|
||||
Pico.est.HighPal[0xe0] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue