|
|
@ -144,7 +144,7 @@ void _glfwInputMonitorChange(void) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_glfwDestroyMonitors(); |
|
|
|
_glfwDestroyMonitors(_glfw.monitors, _glfw.monitorCount); |
|
|
|
|
|
|
|
|
|
|
|
_glfw.monitors = monitors; |
|
|
|
_glfw.monitors = monitors; |
|
|
|
_glfw.monitorCount = monitorCount; |
|
|
|
_glfw.monitorCount = monitorCount; |
|
|
@ -175,16 +175,14 @@ void _glfwDestroyMonitor(_GLFWmonitor* monitor) |
|
|
|
free(monitor); |
|
|
|
free(monitor); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void _glfwDestroyMonitors(void) |
|
|
|
void _glfwDestroyMonitors(_GLFWmonitor** monitors, int count) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i; |
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < _glfw.monitorCount; i++) |
|
|
|
for (i = 0; i < count; i++) |
|
|
|
_glfwDestroyMonitor(_glfw.monitors[i]); |
|
|
|
_glfwDestroyMonitor(monitors[i]); |
|
|
|
|
|
|
|
|
|
|
|
free(_glfw.monitors); |
|
|
|
free(monitors); |
|
|
|
_glfw.monitors = NULL; |
|
|
|
|
|
|
|
_glfw.monitorCount = 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, |
|
|
|
const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, |
|
|
|