mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-16 06:18:53 +01:00
fix for last commit
This commit is contained in:
parent
f929855c1f
commit
570d7f11bb
@ -707,8 +707,11 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||||||
|
|
||||||
if (GET_X_LPARAM(lParam) > g_ddraw->width || GET_Y_LPARAM(lParam) > g_ddraw->height)
|
if (GET_X_LPARAM(lParam) > g_ddraw->width || GET_Y_LPARAM(lParam) > g_ddraw->height)
|
||||||
{
|
{
|
||||||
x = g_ddraw->cursor.x = min(GET_X_LPARAM(lParam), g_ddraw->width);
|
x = min(GET_X_LPARAM(lParam), g_ddraw->width);
|
||||||
y = g_ddraw->cursor.y = min(GET_Y_LPARAM(lParam), g_ddraw->height);
|
y = min(GET_Y_LPARAM(lParam), g_ddraw->height);
|
||||||
|
|
||||||
|
g_ddraw->cursor.x = x;
|
||||||
|
g_ddraw->cursor.y = y;
|
||||||
|
|
||||||
lParam = MAKELPARAM(x, y);
|
lParam = MAKELPARAM(x, y);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user