diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-05 14:56:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-05 14:56:14 +0200 |
commit | 192c713c9ab0e5597f2f690ebdf777203dcbcbbb (patch) | |
tree | ce47d3dcefd6e07c2e85eba3706a2c63a5b948b5 /src/servers/gamma.c | |
parent | Fix bugs (diff) | |
download | coopgammad-192c713c9ab0e5597f2f690ebdf777203dcbcbbb.tar.gz coopgammad-192c713c9ab0e5597f2f690ebdf777203dcbcbbb.tar.bz2 coopgammad-192c713c9ab0e5597f2f690ebdf777203dcbcbbb.tar.xz |
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/servers/gamma.c')
-rw-r--r-- | src/servers/gamma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/servers/gamma.c b/src/servers/gamma.c index 8f2df15..17105d4 100644 --- a/src/servers/gamma.c +++ b/src/servers/gamma.c @@ -356,6 +356,8 @@ void restore_gamma(void) { if (outputs[i].supported == LIBGAMMA_NO) continue; + if (outputs[i].saved_ramps.u8.red == NULL) + continue; switch (outputs[i].depth) { |