Fixed another resolution switching bug
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user