1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Cocoa: Fix conversion between NSPoint and CGPoint

GLFW still supports versions of macOS before these became the same
underlying type.

Closes #1023.
This commit is contained in:
ryogo.yoshimura 2017-05-27 15:00:05 +09:00 committed by Camilla Löwy
parent 32f482a6d8
commit 4dee58d480
2 changed files with 4 additions and 1 deletions

View File

@ -354,6 +354,7 @@ skills.
- Jay Weisskopf
- Frank Wille
- yuriks
- Ryogo Yoshimura
- Santi Zupancic
- Jonas Ådahl
- Lasse Öörni

View File

@ -1030,7 +1030,9 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
else
{
[window->ns.object center];
_glfw.ns.cascadePoint = [window->ns.object cascadeTopLeftFromPoint:_glfw.ns.cascadePoint];
_glfw.ns.cascadePoint =
NSPointToCGPoint([window->ns.object cascadeTopLeftFromPoint:
NSPointFromCGPoint(_glfw.ns.cascadePoint)]);
if (wndconfig->resizable)
{