Cleaned up resolution switching code

This commit is contained in:
pagefault
2001-06-12 19:16:53 +00:00
parent 53e73deabf
commit c19f86b1f8

View File

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