aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
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)