mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
Mouse "walking"
Using int insted of double helps keep conversion and subtraction a few lines below accurate. Using double in some cases couse to cursor "walking" when cursorMode == DISABLED . Tested.
This commit is contained in:
parent
8069d56c8c
commit
a601c69719
@ -604,7 +604,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||
if (newCursorX != window->win32.oldCursorX ||
|
||||
newCursorY != window->win32.oldCursorY)
|
||||
{
|
||||
double x, y;
|
||||
int x, y;
|
||||
|
||||
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user