32x: RLE mode + tweaks, VR runs but unstable as everything else

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@795 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-09-29 15:53:18 +00:00
parent be20816c4c
commit 1b3f584492
4 changed files with 47 additions and 19 deletions

View file

@ -79,7 +79,13 @@ void FinalizeLine32xRGB555(int sh, int line)
}
}
else { // Run Length Mode
unsigned short len, t;
for (i = 320; i > 0; ps++) {
t = pal[*ps & 0xff];
for (len = (*ps >> 8) + 1; len > 0 && i > 0; len--, i--, pd++, pb++)
if (*pb == 0 || (t & 0x20))
*pd = t;
}
}
}