diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-27 20:22:04 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-27 20:22:11 -0500 |
commit | ec5aa19acf1b768586688dd7c82ee0d64d314b40 (patch) | |
tree | 767475829fda9b9856532535e06dcb3ad02a5b32 /src/gamma-w32gdi.h | |
parent | redshift: Add config setting to set gamma separately for day/night (diff) | |
download | redshift-ng-ec5aa19acf1b768586688dd7c82ee0d64d314b40.tar.gz redshift-ng-ec5aa19acf1b768586688dd7c82ee0d64d314b40.tar.bz2 redshift-ng-ec5aa19acf1b768586688dd7c82ee0d64d314b40.tar.xz |
redshift: Simplify set_temperature by passing color_setting_t
Changes all set_temperature function in gamma adjustment methods
to take a color_setting_t pointer with the color settings.
Colorramp functions are similarly changed to take a color settings
struct.
Diffstat (limited to '')
-rw-r--r-- | src/gamma-w32gdi.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gamma-w32gdi.h b/src/gamma-w32gdi.h index e81f4c5..1f985c8 100644 --- a/src/gamma-w32gdi.h +++ b/src/gamma-w32gdi.h @@ -14,7 +14,7 @@ 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) 2010 Jon Lund Steffensen <jonlst@gmail.com> + Copyright (c) 2010-2014 Jon Lund Steffensen <jonlst@gmail.com> */ #ifndef REDSHIFT_GAMMA_W32GDI_H @@ -23,6 +23,8 @@ #include <windows.h> #include <wingdi.h> +#include "redshift.h" + typedef struct { WORD *saved_ramps; @@ -38,8 +40,8 @@ int w32gdi_set_option(w32gdi_state_t *state, const char *key, const char *value); void w32gdi_restore(w32gdi_state_t *state); -int w32gdi_set_temperature(w32gdi_state_t *state, int temp, float brightness, - const float gamma[3]); +int w32gdi_set_temperature(w32gdi_state_t *state, + const color_setting_t *color); #endif /* ! REDSHIFT_GAMMA_W32GDI_H */ |