Revert "macOS: Fix cocoa mouse y-coord off by one"
This reverts commit 89692064503ccfbb66374a42d63401a96511501f.
Fixes #1621.
When committing b3f1acd400d524c079a0a5ea833756053834db5d, applying the glfw upstream patch 3c3981a4f0 for 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
@ -660,7 +660,7 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
|
||||
// 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…
x
Reference in New Issue
Block a user