mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
fix for resize cursor not showing on startup
This commit is contained in:
parent
a4270c56fe
commit
ef5e1fbec1
@ -1432,6 +1432,12 @@ HRESULT __stdcall ddraw_SetCooperativeLevel(IDirectDrawImpl *This, HWND hWnd, DW
|
|||||||
SetPixelFormat(This->render.hDC, ChoosePixelFormat(This->render.hDC, &pfd), &pfd);
|
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));
|
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||||
|
|
||||||
GetWindowText(This->hWnd, (LPTSTR)&This->title, sizeof(This->title));
|
GetWindowText(This->hWnd, (LPTSTR)&This->title, sizeof(This->title));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user