mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Changed cursor pos to double.
This commit is contained in:
+1
-5
@@ -365,11 +365,7 @@ static int convertMacKeyCode(unsigned int macKeyCode)
|
||||
[window->ns.object contentRectForFrameRect:[window->ns.object frame]];
|
||||
const NSPoint p = [event locationInWindow];
|
||||
|
||||
// Cocoa coordinate system has origin at lower left
|
||||
const int x = lround(floor(p.x));
|
||||
const int y = contentRect.size.height - lround(ceil(p.y));
|
||||
|
||||
_glfwInputCursorMotion(window, x, y);
|
||||
_glfwInputCursorMotion(window, p.x, contentRect.size.height - p.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user