From 4ca412b754d0c20dcdf51138526e372ecd0eb924 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 24 May 2021 04:53:42 +0200 Subject: [PATCH] fix ShowCursor calls --- src/mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mouse.c b/src/mouse.c index 785855b..619a1f1 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -14,7 +14,7 @@ void mouse_lock() if (g_ddraw->devmode) { if (g_ddraw->handlemouse) - while(real_ShowCursor(FALSE) > 0); + while(real_ShowCursor(FALSE) >= 0); return; } @@ -61,7 +61,7 @@ void mouse_lock() { SetCapture(g_ddraw->hwnd); real_ClipCursor(&rc); - while (real_ShowCursor(FALSE) > 0); + while (real_ShowCursor(FALSE) >= 0); } else {