32x: various gfx related bugfixes

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@856 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2010-01-10 22:58:13 +00:00
parent 5a68108691
commit e51e5983fe
6 changed files with 45 additions and 27 deletions

View file

@ -1566,10 +1566,12 @@ void PicoDrawSetOutFormat(pdso_t which, int allow_32x)
rendstatus_old = -1;
}
// note: may be called on the middle of frame
void PicoDrawSetOutBuf(void *dest, int increment)
{
DrawLineDestBase = dest;
DrawLineDestIncrement = increment;
DrawLineDest = DrawLineDestBase + DrawScanline * increment;
}
void PicoDrawSetInternalBuf(void *dest, int increment)
@ -1577,6 +1579,7 @@ void PicoDrawSetInternalBuf(void *dest, int increment)
if (dest != NULL) {
HighColBase = dest;
HighColIncrement = increment;
HighCol = HighColBase + DrawScanline * increment;
}
else {
HighColBase = DefHighCol;