void _glfwFreeMonitor(_GLFWmonitor* monitor) { if (monitor == NULL) return; _glfwFreeGammaArrays(&monitor->originalRamp); _glfwFreeGammaArrays(&monitor->currentRamp); free(monitor->modes); free(monitor->name); free(monitor); }
GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); _glfwFreeGammaArrays(&monitor->currentRamp); _glfwPlatformGetGammaRamp(monitor, &monitor->currentRamp); return &monitor->currentRamp; }