aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/gamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 13:14:23 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 13:14:23 +0200
commit712fe1dedc5da104af4b0ac6372059ad6bc36e51 (patch)
tree78ff997078fcec15487850b091d07d924edd5e9f /src/servers/gamma.c
parentFix reexec bug (diff)
downloadcoopgammad-712fe1dedc5da104af4b0ac6372059ad6bc36e51.tar.gz
coopgammad-712fe1dedc5da104af4b0ac6372059ad6bc36e51.tar.bz2
coopgammad-712fe1dedc5da104af4b0ac6372059ad6bc36e51.tar.xz
Fix -p bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/servers/gamma.c')
-rw-r--r--src/servers/gamma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/servers/gamma.c b/src/servers/gamma.c
index 04b8856..8f2df15 100644
--- a/src/servers/gamma.c
+++ b/src/servers/gamma.c
@@ -316,6 +316,10 @@ void store_gamma(void)
if (outputs[i].supported == LIBGAMMA_NO)
continue;
+ outputs[i].saved_ramps.u8.red_size = outputs[i].red_size;
+ outputs[i].saved_ramps.u8.green_size = outputs[i].green_size;
+ outputs[i].saved_ramps.u8.blue_size = outputs[i].blue_size;
+
switch (outputs[i].depth)
{
case 64: LOAD_RAMPS(64, u64); break;