aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2017-08-31 14:38:58 -0700
committerGitHub <noreply@github.com>2017-08-31 14:38:58 -0700
commit55c3c1fbeb2331f06fe9a2129fea66f8cbd18ca8 (patch)
tree8d57f0ddaafff0b73b5b26fde13c950d2314562f /src
parentMerge pull request #510 from jonls/fix-config (diff)
parentw32gdi: Enable preserve by default (diff)
downloadredshift-ng-55c3c1fbeb2331f06fe9a2129fea66f8cbd18ca8.tar.gz
redshift-ng-55c3c1fbeb2331f06fe9a2129fea66f8cbd18ca8.tar.bz2
redshift-ng-55c3c1fbeb2331f06fe9a2129fea66f8cbd18ca8.tar.xz
Merge pull request #511 from jonls/preserve-by-default
Preserve gamma ramps by default
Diffstat (limited to 'src')
-rw-r--r--src/gamma-quartz.c2
-rw-r--r--src/gamma-randr.c2
-rw-r--r--src/gamma-vidmode.c2
-rw-r--r--src/gamma-w32gdi.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gamma-quartz.c b/src/gamma-quartz.c
index 6691c91..9fcfdb8 100644
--- a/src/gamma-quartz.c
+++ b/src/gamma-quartz.c
@@ -40,7 +40,7 @@
int
quartz_init(quartz_state_t *state)
{
- state->preserve = 0;
+ state->preserve = 1;
state->displays = NULL;
return 0;
diff --git a/src/gamma-randr.c b/src/gamma-randr.c
index 901c0db..6e0fd00 100644
--- a/src/gamma-randr.c
+++ b/src/gamma-randr.c
@@ -53,7 +53,7 @@ randr_init(randr_state_t *state)
state->crtc_count = 0;
state->crtcs = NULL;
- state->preserve = 0;
+ state->preserve = 1;
xcb_generic_error_t *error;
diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c
index c9682d2..e664f80 100644
--- a/src/gamma-vidmode.c
+++ b/src/gamma-vidmode.c
@@ -43,7 +43,7 @@ vidmode_init(vidmode_state_t *state)
state->screen_num = -1;
state->saved_ramps = NULL;
- state->preserve = 0;
+ state->preserve = 1;
/* Open display */
state->display = XOpenDisplay(NULL);
diff --git a/src/gamma-w32gdi.c b/src/gamma-w32gdi.c
index c518fe6..836b2d1 100644
--- a/src/gamma-w32gdi.c
+++ b/src/gamma-w32gdi.c
@@ -43,7 +43,7 @@ int
w32gdi_init(w32gdi_state_t *state)
{
state->saved_ramps = NULL;
- state->preserve = 0;
+ state->preserve = 1;
return 0;
}