From 22259e3e6d7ad92b8f9bc45ebdfed24c10eebfa3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 28 Aug 2014 16:47:46 +0200 Subject: m fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/gamma-dummy.c.gpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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. */ -- cgit v1.2.3-70-g09d2