1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

fix cursor with devmode

This commit is contained in:
FunkyFr3sh 2021-06-19 15:19:22 +02:00
parent 4595b088ed
commit abebaa02a8

View File

@ -830,7 +830,7 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
real_ShowCursor(FALSE); real_ShowCursor(FALSE);
/* Make sure the cursor is visible in windowed mode initially */ /* Make sure the cursor is visible in windowed mode initially */
if (g_ddraw->windowed && !g_ddraw->fullscreen && cursor_count < 0) if (g_ddraw->windowed && !g_ddraw->fullscreen && !g_ddraw->devmode && cursor_count < 0)
{ {
while (real_ShowCursor(TRUE) < 0); while (real_ShowCursor(TRUE) < 0);
} }