Renamed monitor helper functions for clarity.
diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m
index cdf8712..a0d20ff 100644
--- a/src/cocoa_monitor.m
+++ b/src/cocoa_monitor.m
@@ -273,8 +273,8 @@
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 @@
"Cocoa: Failed to find NSScreen for CGDisplay %s",
monitors[found]->name);
- _glfwDestroyMonitor(monitors[found]);
+ _glfwFreeMonitor(monitors[found]);
monitors[found] = NULL;
}
}