macOS: Fix cocoa mouse y-coord off by one

See https://github.com/glfw/glfw/issues/1461
This commit is contained in:
Kovid Goyal 2019-04-09 22:02:36 +05:30
parent 41318d763b
commit 8969206450
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -657,7 +657,7 @@ - (void)mouseMoved:(NSEvent *)event
const NSRect contentRect = [window->ns.view frame];
const NSPoint pos = [event locationInWindow];
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y);
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y - 1);
}
window->ns.cursorWarpDeltaX = 0;