mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Win32: Remove accidental C99
This commit is contained in:
parent
d203ccbf5e
commit
5f17b61ff2
|
@ -618,12 +618,12 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||||
|
|
||||||
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
if (window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||||
{
|
{
|
||||||
if (_glfw.win32.disabledCursorWindow != window)
|
|
||||||
break;
|
|
||||||
|
|
||||||
const int dx = x - window->win32.lastCursorPosX;
|
const int dx = x - window->win32.lastCursorPosX;
|
||||||
const int dy = y - window->win32.lastCursorPosY;
|
const int dy = y - window->win32.lastCursorPosY;
|
||||||
|
|
||||||
|
if (_glfw.win32.disabledCursorWindow != window)
|
||||||
|
break;
|
||||||
|
|
||||||
_glfwInputCursorPos(window,
|
_glfwInputCursorPos(window,
|
||||||
window->virtualCursorPosX + dx,
|
window->virtualCursorPosX + dx,
|
||||||
window->virtualCursorPosY + dy);
|
window->virtualCursorPosY + dy);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user