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

Revert "remove debug code"

This reverts commit 75ed1595c6288a55e0d7ba4410c169a7e1c3b445.
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

@ -993,6 +993,8 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
g_ddraw.mouse.unscale_y = ((float)(g_ddraw.height - 1) / (g_ddraw.render.viewport.height - 1));
}
TRACE("sdm unscale_x %.6f, y=%.6f\n", g_ddraw.mouse.unscale_x, g_ddraw.mouse.unscale_y);
g_ddraw.mouse.x_adjust = g_ddraw.render.viewport.x;
g_ddraw.mouse.y_adjust = g_ddraw.render.viewport.y;

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;
}
}
}