Revert "macOS: Fix cocoa mouse y-coord off by one"
This reverts commit8969206450. Fixes #1621. When committingb3f1acd400, applying the glfw upstream patch3c3981a4f0for https://github.com/glfw/glfw/issues/1461, this commit should have been reverted as it was just a quick fix for https://github.com/glfw/glfw/issues/1461.
This commit is contained in:
parent
3aa016940c
commit
05f01525c3
1 changed files with 1 additions and 1 deletions
|
|
@ -660,7 +660,7 @@ - (void)mouseMoved:(NSEvent *)event
|
|||
// NOTE: The returned location uses base 0,1 not 0,0
|
||||
const NSPoint pos = [event locationInWindow];
|
||||
|
||||
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y - 1);
|
||||
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y);
|
||||
}
|
||||
|
||||
window->ns.cursorWarpDeltaX = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue