From 9fe71af79a16c877b6693ee03506b55bc8a5e3a3 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 19 May 2013 09:48:36 +0200 Subject: [PATCH] Fixed broken test for broken RandR gamma. --- src/x11_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_gamma.c b/src/x11_gamma.c index ae5b1cd8..3de1062c 100644 --- a/src/x11_gamma.c +++ b/src/x11_gamma.c @@ -54,7 +54,7 @@ void _glfwInitGammaRamp(void) XRRScreenResources* rr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); - if (XRRGetCrtcGammaSize(_glfw.x11.display, rr->crtcs[0])) + if (XRRGetCrtcGammaSize(_glfw.x11.display, rr->crtcs[0]) == 0) { // This is probably older Nvidia RandR with broken gamma support // Flag it as useless and try Xf86VidMode below, if available