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

@ -11,6 +11,13 @@
#include "config.h"
BOOL util_is_minimized(HWND hwnd)
{
RECT rc = { 0 };
return IsIconic(hwnd) || (real_GetClientRect(hwnd, &rc) && (rc.right - rc.left == 0 || rc.bottom - rc.top == 0));
}
BOOL util_is_avx_supported()
{
const DWORD XMM_STATE_BIT = 1 << 1;