diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-23 18:25:56 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-23 18:25:56 +0100 |
commit | cfeb79731abcc6e9a6cc0379473b86faebb6c88d (patch) | |
tree | 2082bdef3a1e9b5eece1ad6afdd82f581fa5d0b2 /src/vidmode.h | |
parent | Move source and headers to src dir. (diff) | |
download | redshift-ng-cfeb79731abcc6e9a6cc0379473b86faebb6c88d.tar.gz redshift-ng-cfeb79731abcc6e9a6cc0379473b86faebb6c88d.tar.bz2 redshift-ng-cfeb79731abcc6e9a6cc0379473b86faebb6c88d.tar.xz |
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.
Diffstat (limited to 'src/vidmode.h')
-rw-r--r-- | src/vidmode.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. + + Copyright (c) 2009 Jon Lund Steffensen <jonlst@gmail.com> +*/ + +#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 */ |