mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Made gamma ramp functions per-monitor.
This commit is contained in:
@@ -93,10 +93,6 @@ int _glfwPlatformInit(void)
|
||||
changeToResourcesDirectory();
|
||||
#endif
|
||||
|
||||
// Save the original gamma ramp
|
||||
_glfw.originalRampSize = CGDisplayGammaTableCapacity(CGMainDisplayID());
|
||||
_glfwPlatformGetGammaRamp(&_glfw.originalRamp);
|
||||
|
||||
_glfwInitTimer();
|
||||
|
||||
_glfwInitJoysticks();
|
||||
@@ -123,10 +119,6 @@ void _glfwPlatformTerminate(void)
|
||||
_glfw.ns.eventSource = NULL;
|
||||
}
|
||||
|
||||
// Restore the original gamma ramp
|
||||
if (_glfw.rampChanged)
|
||||
_glfwPlatformSetGammaRamp(&_glfw.originalRamp);
|
||||
|
||||
[NSApp setDelegate:nil];
|
||||
[_glfw.ns.delegate release];
|
||||
_glfw.ns.delegate = nil;
|
||||
|
||||
Reference in New Issue
Block a user