1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Formatting.

This commit is contained in:
Camilla Berglund 2012-10-18 17:54:55 +02:00
parent d6210b11f3
commit ccec055ff7

View File

@ -59,9 +59,9 @@ void _glfwInitGammaRamp(void)
_glfwLibrary.originalRampSize = XRRGetCrtcGammaSize(_glfwLibrary.X11.display, _glfwLibrary.originalRampSize = XRRGetCrtcGammaSize(_glfwLibrary.X11.display,
rr->crtcs[0]); rr->crtcs[0]);
if (!_glfwLibrary.originalRampSize) if (_glfwLibrary.originalRampSize == 0)
{ {
// This is probably Nvidia RandR with broken gamma support // This is probably older Nvidia RandR with broken gamma support
// Flag it as useless and try Xf86VidMode below, if available // Flag it as useless and try Xf86VidMode below, if available
_glfwLibrary.X11.RandR.gammaBroken = GL_TRUE; _glfwLibrary.X11.RandR.gammaBroken = GL_TRUE;
} }