parent
ba4e78e57f
commit
68fd4e8bb3
@ -413,13 +413,7 @@ void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos
|
||||
NSScreen *resultScreen;
|
||||
for (NSScreen *screen in [NSScreen screens]) {
|
||||
if ([[[screen deviceDescription] valueForKey:@"NSScreenNumber"] intValue] == monitor->ns.displayID) {
|
||||
resultScreen = screen;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
NSRect frameRect = [[NSScreen resultScreen] visibleFrame];
|
||||
|
||||
NSRect frameRect = [screen visibleFrame];
|
||||
if (xpos)
|
||||
*xpos = NSMinX(frameRect);
|
||||
if (ypos)
|
||||
@ -428,6 +422,9 @@ void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos
|
||||
*width = NSWidth(frameRect);
|
||||
if (height)
|
||||
*height = NSHeight(frameRect);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
|
||||
|
Loading…
Reference in New Issue
Block a user