diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-05 09:14:17 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-05 09:14:17 +0100 |
commit | 6c518351ef1a7fc144d3689165fbe582d1ee72fc (patch) | |
tree | daf5f57999a889a14506de4af7136d025476d338 /src/gamma-vidmode.c | |
parent | Update my e-mail address (diff) | |
parent | Add coopgamma backend (diff) | |
download | redshift-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-vidmode.c')
-rw-r--r-- | src/gamma-vidmode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c index e604c3b..1ea585e 100644 --- a/src/gamma-vidmode.c +++ b/src/gamma-vidmode.c @@ -70,7 +70,7 @@ vidmode_init(vidmode_state_t **state) } static int -vidmode_start(vidmode_state_t *state) +vidmode_start(vidmode_state_t *state, program_mode_t mode) { int r; int screen_num = state->screen_num; @@ -218,8 +218,8 @@ vidmode_set_temperature( } } - colorramp_fill(gamma_r, gamma_g, gamma_b, state->ramp_size, - setting); + colorramp_fill_u16(gamma_r, gamma_g, gamma_b, state->ramp_size, + state->ramp_size, state->ramp_size, setting); /* Set new gamma ramps */ r = XF86VidModeSetGammaRamp(state->display, state->screen_num, |