From 8b1da8513c7810e77fcaab5cf760222059250fd7 Mon Sep 17 00:00:00 2001 From: Genny Date: Sat, 24 Dec 2022 02:38:48 -0600 Subject: set screen descriptor metadata --- gifed/src/writer/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 Writer { height: u16, global_palette: Option, ) -> Result { - 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) } -- cgit 1.4.1-3-g733a5