Fixed another resolution switching bug

This commit is contained in:
pagefault
2001-06-12 02:11:35 +00:00
parent 7ee318338b
commit 598367432c

View File

@@ -1590,23 +1590,23 @@ void initwinvideo(void)
PrevFull = 0; PrevFull = 0;
ReleaseDirectDraw(); ReleaseDirectDraw();
InitDirectDraw(); InitDirectDraw();
return;
} }
if (FullScreen == 1 && PrevFull != 1) if (FullScreen == 1 && PrevFull != 1 || newmode == 1)
{ {
PrevFull = 1; PrevFull = 1;
InitDirectDraw(); InitDirectDraw();
clearwin();
return;
} }
if (FullScreen == 0 || newmode == 1)
{
if (newmode) clearwin();
}
if (FullScreen == 1 && newmode == 1) if (FullScreen == 1 && newmode == 1)
{ {
ReleaseDirectDraw(); ReleaseDirectDraw();
InitDirectDraw(); InitDirectDraw();
clearwin();
return;
} }
} }