aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-28 16:47:46 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-28 16:47:46 +0200
commit22259e3e6d7ad92b8f9bc45ebdfed24c10eebfa3 (patch)
tree4e81dba0f06964fb2da4a248019d81066fb90c01 /src
parentdummy method: set and get gamma ramps (diff)
downloadlibgamma-22259e3e6d7ad92b8f9bc45ebdfed24c10eebfa3.tar.gz
libgamma-22259e3e6d7ad92b8f9bc45ebdfed24c10eebfa3.tar.bz2
libgamma-22259e3e6d7ad92b8f9bc45ebdfed24c10eebfa3.tar.xz
m fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/gamma-dummy.c.gpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/gamma-dummy.c.gpp b/src/lib/gamma-dummy.c.gpp
index c3d6856..a7f3af9 100644
--- a/src/lib/gamma-dummy.c.gpp
+++ b/src/lib/gamma-dummy.c.gpp
@@ -350,6 +350,8 @@ int libgamma_dummy_site_initialise(libgamma_site_state_t* restrict this,
for (i = 0; i < data->partition_count; i++)
data->partitions[i].crtc_count = crtcs;
+ this->partitions_available = data->partition_count;
+
return 0;
fail:
@@ -452,6 +454,8 @@ int libgamma_dummy_partition_initialise(libgamma_partition_state_t* restrict thi
}
}
+ this->crtcs_available = data->crtc_count;
+
return 0;
fail:
@@ -695,7 +699,9 @@ int libgamma_dummy_get_crtc_information(libgamma_crtc_information_t* restrict th
}
/* Parse EDID. */
- if ((fields & (LIBGAMMA_CRTC_INFO_MACRO_EDID ^ LIBGAMMA_CRTC_INFO_EDID)))
+ if (this->edid_error)
+ this->width_mm_edid_error = this->height_mm_edid_error = this->gamma_error = this->edid_error;
+ else if ((fields & (LIBGAMMA_CRTC_INFO_MACRO_EDID ^ LIBGAMMA_CRTC_INFO_EDID)))
e |= libgamma_parse_edid(this, fields);
/* Test errors. */