|
|
|
@ -432,6 +432,7 @@ void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) |
|
|
|
|
|
|
|
|
|
XRRFreeGamma(gamma); |
|
|
|
|
} |
|
|
|
|
#if defined(_GLFW_HAS_XF86VM) |
|
|
|
|
else if (_glfw.x11.vidmode.available) |
|
|
|
|
{ |
|
|
|
|
int size; |
|
|
|
@ -443,6 +444,7 @@ void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) |
|
|
|
|
_glfw.x11.screen, |
|
|
|
|
ramp->size, ramp->red, ramp->green, ramp->blue); |
|
|
|
|
} |
|
|
|
|
#endif /*_GLFW_HAS_XF86VM*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) |
|
|
|
@ -458,6 +460,7 @@ void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) |
|
|
|
|
XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma); |
|
|
|
|
XRRFreeGamma(gamma); |
|
|
|
|
} |
|
|
|
|
#if defined(_GLFW_HAS_XF86VM) |
|
|
|
|
else if (_glfw.x11.vidmode.available) |
|
|
|
|
{ |
|
|
|
|
XF86VidModeSetGammaRamp(_glfw.x11.display, |
|
|
|
@ -467,6 +470,7 @@ void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) |
|
|
|
|
(unsigned short*) ramp->green, |
|
|
|
|
(unsigned short*) ramp->blue); |
|
|
|
|
} |
|
|
|
|
#endif /*_GLFW_HAS_XF86VM*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|