aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-w32gdi.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 09:14:17 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 09:14:17 +0100
commit6c518351ef1a7fc144d3689165fbe582d1ee72fc (patch)
treedaf5f57999a889a14506de4af7136d025476d338 /src/gamma-w32gdi.c
parentUpdate my e-mail address (diff)
parentAdd coopgamma backend (diff)
downloadredshift-ng-6c518351ef1a7fc144d3689165fbe582d1ee72fc.tar.gz
redshift-ng-6c518351ef1a7fc144d3689165fbe582d1ee72fc.tar.bz2
redshift-ng-6c518351ef1a7fc144d3689165fbe582d1ee72fc.tar.xz
Merge branch 'coopgamma' of https://github.com/maandree/redshift
Diffstat (limited to 'src/gamma-w32gdi.c')
-rw-r--r--src/gamma-w32gdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamma-w32gdi.c b/src/gamma-w32gdi.c
index 730cd0c..da5461e 100644
--- a/src/gamma-w32gdi.c
+++ b/src/gamma-w32gdi.c
@@ -62,7 +62,7 @@ w32gdi_init(w32gdi_state_t **state)
}
static int
-w32gdi_start(w32gdi_state_t *state)
+w32gdi_start(w32gdi_state_t *state, program_mode_t mode)
{
BOOL r;
@@ -200,8 +200,8 @@ w32gdi_set_temperature(
}
}
- 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 = FALSE;