1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

fix for last commit

This commit is contained in:
FunkyFr3sh 2018-08-09 11:39:11 +02:00
parent b9eab72850
commit 8b6932f6a7

View File

@ -587,14 +587,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
} }
else if (wParam == WA_INACTIVE) else if (wParam == WA_INACTIVE)
{ {
mouse_unlock();
if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime()) if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime())
{ {
LastSetWindowPosTick = 0; LastSetWindowPosTick = 0;
return 0; return 0;
} }
mouse_unlock();
/* minimize our window on defocus when in fullscreen */ /* minimize our window on defocus when in fullscreen */
if (!ddraw->windowed) if (!ddraw->windowed)
{ {