vdp rendering, fixes and optimisations

This commit is contained in:
kub 2020-09-30 19:31:41 +02:00
parent 81d54be15d
commit 47677a2ab1
4 changed files with 146 additions and 154 deletions

View file

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