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
@@ -224,6 +224,11 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found)
return monitors;
}
GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second)
{
return first->x11.crtc == second->x11.crtc;
}
void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
{
if (_glfw.x11.randr.available)