mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 21:14:35 +00:00
parent
bea4818030
commit
222ac78a44
@ -420,10 +420,14 @@ void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos
|
|||||||
|
|
||||||
NSRect frameRect = [[NSScreen resultScreen] visibleFrame];
|
NSRect frameRect = [[NSScreen resultScreen] visibleFrame];
|
||||||
|
|
||||||
*xpos = NSMinX(frameRect);
|
if (xpos)
|
||||||
*ypos = NSMinY(frameRect);
|
*xpos = NSMinX(frameRect);
|
||||||
*width = NSMaxX(frameRect);
|
if (ypos)
|
||||||
*height = NSMaxY(frameRect);
|
*ypos = NSMinY(frameRect);
|
||||||
|
if (width)
|
||||||
|
*width = NSWidth(frameRect);
|
||||||
|
if (height)
|
||||||
|
*height = NSHeight(frameRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
|
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
|
||||||
|
Loading…
Reference in New Issue
Block a user