mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00: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:
parent
32f482a6d8
commit
4dee58d480
@ -354,6 +354,7 @@ skills.
|
||||
- Jay Weisskopf
|
||||
- Frank Wille
|
||||
- yuriks
|
||||
- Ryogo Yoshimura
|
||||
- Santi Zupancic
|
||||
- Jonas Ådahl
|
||||
- Lasse Öörni
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user