From 38af3a0d5e22399b515ceb037870c3ef22662bb7 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Thu, 21 Apr 2011 00:23:50 +0200 Subject: Allow brightness to be adjusted (between 10% and 100%, the latter being the default). --- src/gamma-vidmode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gamma-vidmode.c') diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c index 7b891d8..a083658 100644 --- a/src/gamma-vidmode.c +++ b/src/gamma-vidmode.c @@ -169,7 +169,8 @@ vidmode_restore(vidmode_state_t *state) } int -vidmode_set_temperature(vidmode_state_t *state, int temp, float gamma[3]) +vidmode_set_temperature(vidmode_state_t *state, int temp, float brightness, + float gamma[3]) { int r; @@ -185,7 +186,7 @@ vidmode_set_temperature(vidmode_state_t *state, int temp, float gamma[3]) uint16_t *gamma_b = &gamma_ramps[2*state->ramp_size]; colorramp_fill(gamma_r, gamma_g, gamma_b, state->ramp_size, - temp, gamma); + temp, brightness, gamma); /* Set new gamma ramps */ r = XF86VidModeSetGammaRamp(state->display, state->screen_num, -- cgit v1.2.3-70-g09d2