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:
Kamil 2013-11-12 03:08:18 +01:00
parent 8069d56c8c
commit a601c69719

View File

@ -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)
{