From 0d24c34d7fea73a0002a79e995f7c7f30b03a054 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 19 Dec 2016 08:14:23 +0100 Subject: Add coopgamma backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-w32gdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gamma-w32gdi.c') diff --git a/src/gamma-w32gdi.c b/src/gamma-w32gdi.c index c518fe6..a4d4a60 100644 --- a/src/gamma-w32gdi.c +++ b/src/gamma-w32gdi.c @@ -49,7 +49,7 @@ w32gdi_init(w32gdi_state_t *state) } int -w32gdi_start(w32gdi_state_t *state) +w32gdi_start(w32gdi_state_t *state, program_mode_t mode) { BOOL r; @@ -183,8 +183,8 @@ w32gdi_set_temperature(w32gdi_state_t *state, } } - colorramp_fill(gamma_r, gamma_g, gamma_b, GAMMA_RAMP_SIZE, - setting); + colorramp_fill_u16(gamma_r, gamma_g, gamma_b, GAMMA_RAMP_SIZE, + GAMMA_RAMP_SIZE, GAMMA_RAMP_SIZE, setting); /* Set new gamma ramps */ r = SetDeviceGammaRamp(hDC, gamma_ramps); -- cgit v1.2.3-70-g09d2