Added proper monitor comparison.

This commit is contained in:
Camilla Berglund
2013-04-22 14:43:13 +02:00
parent 2891c9629f
commit 7405bc48cd
5 changed files with 26 additions and 1 deletions
+5
View File
@@ -305,6 +305,11 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
return monitors;
}
GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second)
{
return first->ns.displayID == second->ns.displayID;
}
void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
{
const CGRect bounds = CGDisplayBounds(monitor->ns.displayID);