replace IsIconic with custom function

This commit is contained in:
FunkyFr3sh 2023-08-20 23:12:00 +02:00
parent 5c23d2d8a5
commit 66e86aa37c
7 changed files with 17 additions and 8 deletions

View file

@ -3,6 +3,7 @@
#include "winapi_hooks.h"
#include "dd.h"
#include "hook.h"
#include "utils.h"
BOOL g_mouse_locked;
@ -14,7 +15,7 @@ void mouse_lock()
if (g_ddraw->devmode || g_ddraw->bnet_active || !g_ddraw->hwnd)
return;
if (g_hook_active && !g_mouse_locked && !IsIconic(g_ddraw->hwnd))
if (g_hook_active && !g_mouse_locked && !util_is_minimized(g_ddraw->hwnd))
{
int game_count = InterlockedExchangeAdd((LONG*)&g_ddraw->show_cursor_count, 0);
int cur_count = real_ShowCursor(TRUE) - 1;