diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-05-08 17:08:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-05-08 17:08:09 +0200 |
commit | 07a9ed2de2024b7835e0a813c056deb325bd3a33 (patch) | |
tree | 935764154ec57e60024a69068b6cca6ef7250f05 /src/lib/gamma-linux-drm.c | |
parent | info: update compiling chapter (diff) | |
parent | Gamma ramp support test return yes, no or maybe. (diff) | |
download | libgamma-07a9ed2de2024b7835e0a813c056deb325bd3a33.tar.gz libgamma-07a9ed2de2024b7835e0a813c056deb325bd3a33.tar.bz2 libgamma-07a9ed2de2024b7835e0a813c056deb325bd3a33.tar.xz |
Merge branch 'master' into wayland
Diffstat (limited to 'src/lib/gamma-linux-drm.c')
-rw-r--r-- | src/lib/gamma-linux-drm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/gamma-linux-drm.c b/src/lib/gamma-linux-drm.c index 38c23ed..b785c9f 100644 --- a/src/lib/gamma-linux-drm.c +++ b/src/lib/gamma-linux-drm.c @@ -114,6 +114,8 @@ void libgamma_linux_drm_method_capabilities(libgamma_method_capabilities_t* rest /* DRM is a real non-faked adjustment method */ this->real = 1; this->fake = 0; + /* Gamma ramp adjustments are persistent. */ + this->auto_restore = 0; } @@ -827,7 +829,7 @@ int libgamma_linux_drm_get_crtc_information(libgamma_crtc_information_t* restric e |= (fields & LIBGAMMA_CRTC_INFO_GAMMA_SIZE) ? get_gamma_ramp_size(this, crtc) : 0; /* Store gamma ramp depth. */ this->gamma_depth = 16; - /* X RandR does not support quering gamma ramp support. */ + /* DRM does not support quering gamma ramp support. */ e |= this->gamma_support_error = _E(LIBGAMMA_CRTC_INFO_GAMMA_SUPPORT); /* Free the EDID after us. */ |