Renamed monitor helper functions for clarity.

This commit is contained in:
Camilla Berglund
2014-01-21 15:23:11 +01:00
parent beb7e5909f
commit 0548c713e8
6 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -273,8 +273,8 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
int j;
const CGSize size = CGDisplayScreenSize(displays[i]);
monitors[found] = _glfwCreateMonitor(getDisplayName(displays[i]),
size.width, size.height);
monitors[found] = _glfwAllocMonitor(getDisplayName(displays[i]),
size.width, size.height);
monitors[found]->ns.displayID = displays[i];
@@ -299,7 +299,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
"Cocoa: Failed to find NSScreen for CGDisplay %s",
monitors[found]->name);
_glfwDestroyMonitor(monitors[found]);
_glfwFreeMonitor(monitors[found]);
monitors[found] = NULL;
}
}