mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
remove debug code
This commit is contained in:
parent
04d7f2060e
commit
75ed1595c6
2
src/dd.c
2
src/dd.c
@ -988,8 +988,6 @@ 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));
|
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.x_adjust = g_ddraw.render.viewport.x;
|
||||||
g_ddraw.mouse.y_adjust = g_ddraw.render.viewport.y;
|
g_ddraw.mouse.y_adjust = g_ddraw.render.viewport.y;
|
||||||
|
|
||||||
|
@ -647,8 +647,6 @@ BOOL HandleMessage(LPMSG lpMsg, HWND hWnd)
|
|||||||
{
|
{
|
||||||
if (!g_config.devmode && !g_mouse_locked)
|
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.x, GET_X_LPARAM(lpMsg->lParam));
|
||||||
InterlockedExchange((LONG*)&g_ddraw.cursor.y, GET_Y_LPARAM(lpMsg->lParam));
|
InterlockedExchange((LONG*)&g_ddraw.cursor.y, GET_Y_LPARAM(lpMsg->lParam));
|
||||||
|
|
||||||
@ -683,7 +681,6 @@ BOOL HandleMessage(LPMSG lpMsg, HWND hWnd)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user