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
+1 -1
View File
@@ -106,7 +106,7 @@ void _glfwInputMonitorChange(void)
if (_glfw.monitors[j] == NULL)
continue;
if (strcmp(monitors[i]->name, _glfw.monitors[j]->name) == 0)
if (_glfwPlatformIsSameMonitor(monitors[i], _glfw.monitors[j]))
{
// This monitor was connected before, so re-use the existing
// monitor object to preserve its address and user pointer