1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Make sure window is not minimized while locking the cursor

This commit is contained in:
FunkyFr3sh 2022-09-23 00:47:59 +02:00
parent 9025a211e1
commit 9f134dc6ed

View File

@ -152,7 +152,7 @@ BOOL WINAPI fake_ClipCursor(const RECT* lpRect)
CopyRect(&g_ddraw->mouse.rc, &dst_rc);
if (g_mouse_locked)
if (g_mouse_locked && !IsIconic(g_ddraw->hwnd))
{
real_MapWindowPoints(g_ddraw->hwnd, HWND_DESKTOP, (LPPOINT)&dst_rc, 2);