Mode switching fix
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user