From cfeb79731abcc6e9a6cc0379473b86faebb6c88d Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Wed, 23 Dec 2009 18:25:56 +0100 Subject: Add setting gamma ramps with the VidMode extension. Allow selection of gamma setting method with program parameter (-m). Fallback to VidMode if RANDR doesn't work. --- src/vidmode.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/vidmode.h (limited to 'src/vidmode.h') diff --git a/src/vidmode.h b/src/vidmode.h new file mode 100644 index 0000000..893fcc8 --- /dev/null +++ b/src/vidmode.h @@ -0,0 +1,26 @@ +/* vidmode.h -- X VidMode gamma adjustment header + This file is part of Redshift. + + Redshift is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Redshift is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Redshift. If not, see . + + Copyright (c) 2009 Jon Lund Steffensen +*/ + +#ifndef _REDSHIFT_VIDMODE_H +#define _REDSHIFT_VIDMODE_H + +int vidmode_check_extension(); +int vidmode_set_temperature(int temp, float gamma[3]); + +#endif /* ! _REDSHIFT_VIDMODE_H */ -- cgit v1.2.3-70-g09d2