From 192c713c9ab0e5597f2f690ebdf777203dcbcbbb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 14:56:14 +0200 Subject: Fix bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/types/output.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/types') diff --git a/src/types/output.c b/src/types/output.c index 80f3d36..cc2c52b 100644 --- a/src/types/output.c +++ b/src/types/output.c @@ -254,6 +254,10 @@ size_t output_unmarshal(struct output* restrict this, const void* restrict buf) if (this->name == NULL) return 0; + this->saved_ramps.u8.red_size = this->red_size; + this->saved_ramps.u8.green_size = this->green_size; + this->saved_ramps.u8.blue_size = this->blue_size; + off += n = gamma_ramps_unmarshal(&(this->saved_ramps), bs, this->ramps_size); COPY_RAMP_SIZES(&(this->saved_ramps.u8), this); if (n == 0) -- cgit v1.2.3-70-g09d2