about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gifed/src/writer/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/gifed/src/writer/mod.rs b/gifed/src/writer/mod.rs
index ad380a8..394d85f 100644
--- a/gifed/src/writer/mod.rs
+++ b/gifed/src/writer/mod.rs
@@ -25,7 +25,9 @@ impl<W: Write> Writer<W> {
 		height: u16,
 		global_palette: Option<Palette>,
 	) -> Result<Self, EncodeError> {
-		let screen_descriptor = ScreenDescriptor::new(width, height);
+		let mut screen_descriptor = ScreenDescriptor::new(width, height);
+		screen_descriptor.set_color_table_metadata(global_palette.as_ref());
+
 		Self::from_parts(writer, Version::Gif89a, screen_descriptor, global_palette)
 	}