mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
don't minimize on focus loss when mouse is not locked
This commit is contained in:
parent
d91e26fcda
commit
848c918362
@ -1003,6 +1003,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
else if (wParam == WA_INACTIVE)
|
else if (wParam == WA_INACTIVE)
|
||||||
{
|
{
|
||||||
|
if (!ddraw->windowed && !ddraw->locked)
|
||||||
|
return 0;
|
||||||
|
|
||||||
mouse_unlock();
|
mouse_unlock();
|
||||||
|
|
||||||
if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime())
|
if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user