From ef5e1fbec178a90e1d227a412e693af6869b42cb Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 1 Dec 2018 02:02:55 +0100 Subject: [PATCH] fix for resize cursor not showing on startup --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 2860591..2116b3b 100644 --- a/src/main.c +++ b/src/main.c @@ -1432,6 +1432,12 @@ HRESULT __stdcall ddraw_SetCooperativeLevel(IDirectDrawImpl *This, HWND hWnd, DW SetPixelFormat(This->render.hDC, ChoosePixelFormat(This->render.hDC, &pfd), &pfd); } + if (ddraw->handlemouse && ddraw->windowed) + { + while (ShowCursor(FALSE) > 0); //workaround for direct input games + while (ShowCursor(TRUE) < 0); + } + SetCursor(LoadCursor(NULL, IDC_ARROW)); GetWindowText(This->hWnd, (LPTSTR)&This->title, sizeof(This->title));