aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/gamma-dummy.c.gpp
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-05-08 17:08:09 +0200
committerMattias Andrée <maandree@operamail.com>2015-05-08 17:08:09 +0200
commit07a9ed2de2024b7835e0a813c056deb325bd3a33 (patch)
tree935764154ec57e60024a69068b6cca6ef7250f05 /src/lib/gamma-dummy.c.gpp
parentinfo: update compiling chapter (diff)
parentGamma ramp support test return yes, no or maybe. (diff)
downloadlibgamma-07a9ed2de2024b7835e0a813c056deb325bd3a33.tar.gz
libgamma-07a9ed2de2024b7835e0a813c056deb325bd3a33.tar.bz2
libgamma-07a9ed2de2024b7835e0a813c056deb325bd3a33.tar.xz
Merge branch 'master' into wayland
Diffstat (limited to '')
-rw-r--r--src/lib/gamma-dummy.c.gpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/gamma-dummy.c.gpp b/src/lib/gamma-dummy.c.gpp
index 1ceb4a6..24e9d41 100644
--- a/src/lib/gamma-dummy.c.gpp
+++ b/src/lib/gamma-dummy.c.gpp
@@ -295,9 +295,11 @@ static libgamma_dummy_configurations_t libgamma_dummy_configurations =
*/
void libgamma_dummy_method_capabilities(libgamma_method_capabilities_t* restrict this)
{
+ int real_method = libgamma_dummy_configurations.real_method;
*this = libgamma_dummy_configurations.capabilities;
- this->real = libgamma_dummy_configurations.real_method != LIBGAMMA_METHOD_DUMMY;
+ this->real = real_method != LIBGAMMA_METHOD_DUMMY;
this->fake = this->real;
+ this->auto_restore = real_method == LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS;
}