Fix title screen regression

svn-id: r29988
This commit is contained in:
Vincent Hamm 2007-12-25 19:32:51 +00:00
parent 7159cc26df
commit a3f1767009
3 changed files with 13 additions and 4 deletions

View File

@ -1797,7 +1797,7 @@ void mainLoop(void) {
if (doFade)
PCFadeFlag = 0;
if (!PCFadeFlag) {
/*if (!PCFadeFlag)*/ {
mainDraw(0);
flipScreen();
}

View File

@ -547,7 +547,8 @@ int16 Op_FadeOut(void) {
gfxModuleData_flipScreen();
}
//gfxModuleData_gfxClearFrameBuffer(backgroundPtrtable[masterScreen]);
memset(globalScreen, 0, 320 * 200);
flip();
fadeFlag = 1;
PCFadeFlag = 1;

View File

@ -124,6 +124,14 @@ void fadeIn() {
}
void flipScreen(void) {
if(switchPal) {
for(unsigned long int i=0; i<256*3; i++) {
workpal[i] = palScreen[masterScreen][i];
}
switchPal = 0;
gfxModuleData_setPal256(workpal);
}
SWAP(gfxModuleData.pPage00, gfxModuleData.pPage10);
gfxModuleData_flipScreen();
@ -1388,9 +1396,9 @@ void mainDraw(int16 param) {
int16 objZ2 = 0;
int16 spriteHeight;
if (PCFadeFlag) {
/*if (PCFadeFlag) {
return;
}
}*/
bgPtr = backgroundPtrtable[masterScreen];