From 712fe1dedc5da104af4b0ac6372059ad6bc36e51 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 13:14:23 +0200 Subject: Fix -p 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 | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3-70-g09d2