mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
vdp rendering, fixes and optimisations
This commit is contained in:
parent
81d54be15d
commit
47677a2ab1
4 changed files with 146 additions and 154 deletions
|
@ -31,7 +31,11 @@ static void convert_pal555(int invert_prio)
|
|||
// place prio to LS green bit
|
||||
for (i = 0x100/2; i > 0; i--, ps++, pd++) {
|
||||
unsigned int t = *ps;
|
||||
#if defined(USE_BGR555)
|
||||
*pd = t ^ inv;
|
||||
#else
|
||||
*pd = (((t & m1) << 11) | ((t & m2) << 1) | ((t & m3) >> 10)) ^ inv;
|
||||
#endif
|
||||
}
|
||||
|
||||
Pico32x.dirty_pal = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue