Revert "remove debug code"

This reverts commit 75ed1595c6.
This commit is contained in:
FunkyFr3sh 2024-09-10 15:41:29 +02:00
parent 8425f81597
commit efbf7e7b30
2 changed files with 5 additions and 0 deletions

View file

@ -647,6 +647,8 @@ BOOL HandleMessage(LPMSG lpMsg, HWND hWnd)
{
if (!g_config.devmode && !g_mouse_locked)
{
TRACE("HandleMessage %s hWnd=%p, lpMsg->hWnd=%p\n", dbg_mes_to_str(lpMsg->message), hWnd, lpMsg->hwnd);
InterlockedExchange((LONG*)&g_ddraw.cursor.x, GET_X_LPARAM(lpMsg->lParam));
InterlockedExchange((LONG*)&g_ddraw.cursor.y, GET_Y_LPARAM(lpMsg->lParam));
@ -681,6 +683,7 @@ BOOL HandleMessage(LPMSG lpMsg, HWND hWnd)
break;
}
}
}