1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 14:14:47 +01:00

fix for resize cursor not showing on startup

This commit is contained in:
FunkyFr3sh 2018-12-01 02:02:55 +01:00
parent a4270c56fe
commit ef5e1fbec1

View File

@ -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));