mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-26 10:29:23 +01:00
fix hidden cursor bug
This commit is contained in:
parent
4506b00863
commit
868a4479ba
11
src/main.c
11
src/main.c
@ -1197,9 +1197,18 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
HWND hWnd = FindWindowEx(HWND_DESKTOP, NULL, "SDlgDialog", NULL);
|
HWND hWnd = FindWindowEx(HWND_DESKTOP, NULL, "SDlgDialog", NULL);
|
||||||
if (hWnd)
|
if (hWnd)
|
||||||
|
{
|
||||||
|
BOOL hideCursor = TRUE;
|
||||||
|
|
||||||
|
do
|
||||||
{
|
{
|
||||||
RECT rc;
|
RECT rc;
|
||||||
if (GetWindowRect(hWnd, &rc) && (rc.bottom - rc.top != 479))
|
if (GetWindowRect(hWnd, &rc) && rc.bottom - rc.top == 479)
|
||||||
|
hideCursor = FALSE;
|
||||||
|
|
||||||
|
} while ((hWnd = FindWindowEx(HWND_DESKTOP, hWnd, "SDlgDialog", NULL)));
|
||||||
|
|
||||||
|
if (hideCursor)
|
||||||
while (ShowCursor(FALSE) > 0);
|
while (ShowCursor(FALSE) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user