32x: drc: new smc handling, some bugfixes + refactoring

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@864 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2010-01-21 22:11:54 +00:00
parent 5686d93123
commit a2b8c5a545
9 changed files with 349 additions and 263 deletions

View file

@ -308,7 +308,7 @@ void PicoDraw32xSetFrameMode(int is_on, int only_32x)
if (is_on) {
// use the same layout as alt renderer
PicoDrawSetInternalBuf(PicoDraw2FB + 328*8, 328);
PicoDrawSetInternalBuf(PicoDraw2FB, 328);
Pico32xDrawMode = only_32x ? PDM32X_32X_ONLY : PDM32X_BOTH;
} else {
PicoDrawSetInternalBuf(NULL, 0);

View file

@ -9,6 +9,7 @@
#include "pico_int.h"
#include "../zlib/zlib.h"
#include "../cpu/debug.h"
#include "../unzip/unzip.h"
#include "../unzip/unzip_stream.h"
@ -555,6 +556,7 @@ int PicoCartInsert(unsigned char *rom, unsigned int romsize, const char *carthw_
PicoCartUnloadHook();
PicoCartUnloadHook = NULL;
}
pdb_cleanup();
PicoAHW &= PAHW_MCD|PAHW_SMS;

View file

@ -1421,7 +1421,7 @@ PICO_INTERNAL void PicoFrameStart(void)
lines = 240;
}
HighCol = HighColBase;
HighCol = HighColBase + offs * HighColIncrement;
DrawLineDest = (char *)DrawLineDestBase + offs * DrawLineDestIncrement;
DrawScanline = 0;
skip_next_line = 0;