aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 14:56:14 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 14:56:14 +0200
commit192c713c9ab0e5597f2f690ebdf777203dcbcbbb (patch)
treece47d3dcefd6e07c2e85eba3706a2c63a5b948b5 /src/types
parentFix bugs (diff)
downloadcoopgammad-192c713c9ab0e5597f2f690ebdf777203dcbcbbb.tar.gz
coopgammad-192c713c9ab0e5597f2f690ebdf777203dcbcbbb.tar.bz2
coopgammad-192c713c9ab0e5597f2f690ebdf777203dcbcbbb.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/types')
-rw-r--r--src/types/output.c4
1 files changed, 4 insertions, 0 deletions
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)