Mode switching fix

This commit is contained in:
uid50746
2001-06-06 04:22:15 +00:00
parent ee38b8a35e
commit 302a73316e

View File

@@ -435,7 +435,7 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
if (LOWORD(wParam) != WA_INACTIVE) if (LOWORD(wParam) != WA_INACTIVE)
{ {
IsActivated = 1; IsActivated = 1;
if (!FirstActivate) initwinvideo(); if (FirstActivate == 0) initwinvideo();
InputAcquire(); InputAcquire();
if (FirstActivate == 1) FirstActivate = 0; if (FirstActivate == 1) FirstActivate = 0;
} }
@@ -1582,14 +1582,14 @@ void initwinvideo(void)
TestJoy(); TestJoy();
} }
if (PrevFull == 1) if (FullScreen == 0 && PrevFull == 1)
{ {
PrevFull = 0; PrevFull = 0;
ReleaseDirectDraw(); ReleaseDirectDraw();
InitDirectDraw(); InitDirectDraw();
} }
if (FullScreen == 1) { PrevFull = 1; InitDirectDraw(); } if (FullScreen == 1 && PrevFull != 1) { PrevFull = 1; InitDirectDraw(); }
if (Moving == 1) return; if (Moving == 1) return;