aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/gamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-04 22:00:52 +0200
committerMattias Andrée <maandree@kth.se>2016-08-04 22:00:52 +0200
commit409bade5dd713800aa9bff6b66ed45599c62e865 (patch)
tree2e16dc85b4cf7bab25c095c1bd452805b759ac30 /src/servers/gamma.c
parentFix bugs (diff)
downloadcoopgammad-409bade5dd713800aa9bff6b66ed45599c62e865.tar.gz
coopgammad-409bade5dd713800aa9bff6b66ed45599c62e865.tar.bz2
coopgammad-409bade5dd713800aa9bff6b66ed45599c62e865.tar.xz
Fix bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/servers/gamma.c')
-rw-r--r--src/servers/gamma.c2
1 files changed, 2 insertions, 0 deletions
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;