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 - Jay Weisskopf
- Frank Wille - Frank Wille
- yuriks - yuriks
- Ryogo Yoshimura
- Santi Zupancic - Santi Zupancic
- Jonas Ådahl - Jonas Ådahl
- Lasse Öörni - Lasse Öörni

View File

@ -1030,7 +1030,9 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
else else
{ {
[window->ns.object center]; [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) if (wndconfig->resizable)
{ {