Made glfwGetGammaRamp act directly.

This commit is contained in:
Camilla Berglund 2013-01-17 23:31:22 +01:00
parent dba2d80009
commit a910f53be2
5 changed files with 1 additions and 6 deletions

View File

@ -97,7 +97,6 @@ int _glfwPlatformInit(void)
// Save the original gamma ramp
_glfw.originalRampSize = CGDisplayGammaTableCapacity(CGMainDisplayID());
_glfwPlatformGetGammaRamp(&_glfw.originalRamp);
_glfw.currentRamp = _glfw.originalRamp;
_glfwInitTimer();

View File

@ -86,7 +86,7 @@ GLFWAPI void glfwGetGammaRamp(GLFWgammaramp* ramp)
return;
}
*ramp = _glfw.currentRamp;
_glfwPlatformGetGammaRamp(ramp);
}
GLFWAPI void glfwSetGammaRamp(const GLFWgammaramp* ramp)
@ -98,7 +98,6 @@ GLFWAPI void glfwSetGammaRamp(const GLFWgammaramp* ramp)
}
_glfwPlatformSetGammaRamp(ramp);
_glfw.currentRamp = *ramp;
_glfw.rampChanged = GL_TRUE;
}

View File

@ -290,7 +290,6 @@ struct _GLFWlibrary
int monitorCount;
GLFWmonitorfun monitorCallback;
GLFWgammaramp currentRamp;
GLFWgammaramp originalRamp;
int originalRampSize;
GLboolean rampChanged;

View File

@ -182,7 +182,6 @@ int _glfwPlatformInit(void)
// Save the original gamma ramp
_glfw.originalRampSize = 256;
_glfwPlatformGetGammaRamp(&_glfw.originalRamp);
_glfw.currentRamp = _glfw.originalRamp;
if (!_glfwInitContextAPI())
return GL_FALSE;

View File

@ -80,7 +80,6 @@ void _glfwInitGammaRamp(void)
{
// Save the original gamma ramp
_glfwPlatformGetGammaRamp(&_glfw.originalRamp);
_glfw.currentRamp = _glfw.originalRamp;
}
}