Moved platform specific monitor list creation part to separate functions.

This commit is contained in:
Marcel Metz
2012-01-30 12:33:32 +01:00
parent 6f970f5753
commit f228d23024
6 changed files with 36 additions and 51 deletions
+9
View File
@@ -145,6 +145,15 @@ GLFWAPI void glfwSetMonitorDeviceCallback(GLFWmonitordevicefun cbfun)
_glfwLibrary.monitorCallback= cbfun;
}
//========================================================================
// Initialize the monitor list.
//========================================================================
void _glfwInitMonitors(void)
{
_glfwLibrary.monitorListHead = _glfwCreateMonitors();
}
//========================================================================
// Delete the monitor list.
//========================================================================