From 409bade5dd713800aa9bff6b66ed45599c62e865 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Aug 2016 22:00:52 +0200 Subject: Fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/servers/gamma.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/servers') diff --git a/src/servers/gamma.c b/src/servers/gamma.c index ff0fc8e..9800997 100644 --- a/src/servers/gamma.c +++ b/src/servers/gamma.c @@ -258,6 +258,8 @@ int initialise_gamma_info(void) outputs[i].green_size = info.gamma_size_error ? 0 : info.green_gamma_size; outputs[i].blue_size = info.gamma_size_error ? 0 : info.blue_gamma_size; outputs[i].supported = info.gamma_support_error ? 0 : info.gamma_support; + if (info.gamma_support_error == LIBGAMMA_CRTC_INFO_NOT_SUPPORTED) + outputs[i].supported = LIBGAMMA_MAYBE; if (outputs[i].depth == 0 || outputs[i].red_size == 0 || outputs[i].green_size == 0 || outputs[i].blue_size == 0) outputs[i].supported = 0; -- cgit v1.2.3-70-g09d2