mirror of
https://github.com/isledecomp/isle.git
synced 2026-05-04 22:13:57 +00:00
fix x/y comparison
This commit is contained in:
parent
7814288085
commit
f57cf7b3b6
@ -288,12 +288,12 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
InputManager()->QueueEvent(type, wParam, LOWORD(lParam), HIWORD(lParam), keyCode);
|
InputManager()->QueueEvent(type, wParam, LOWORD(lParam), HIWORD(lParam), keyCode);
|
||||||
}
|
}
|
||||||
if (g_isle && g_isle->m_drawCursor && type == MOUSEMOVE) {
|
if (g_isle && g_isle->m_drawCursor && type == MOUSEMOVE) {
|
||||||
unsigned int x = LOWORD(lParam);
|
int x = LOWORD(lParam);
|
||||||
unsigned int y = HIWORD(lParam);
|
int y = HIWORD(lParam);
|
||||||
if (639 < x) {
|
if (x >= 640) {
|
||||||
x = 639;
|
x = 639;
|
||||||
}
|
}
|
||||||
if (479 < y) {
|
if (y >= 480) {
|
||||||
y = 479;
|
y = 479;
|
||||||
}
|
}
|
||||||
VideoManager()->MoveCursor(x,y);
|
VideoManager()->MoveCursor(x,y);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user