diff options
author | Genny <gen@nyble.dev> | 2022-12-24 02:38:48 -0600 |
---|---|---|
committer | Genny <gen@nyble.dev> | 2022-12-24 02:38:48 -0600 |
commit | 8b1da8513c7810e77fcaab5cf760222059250fd7 (patch) | |
tree | 5fe5850aa1aed5ddc69136fcbf733baa6ae677e0 | |
parent | c4ede682ec9cc43651c1a19682d0102b7886bb98 (diff) | |
download | gifed-8b1da8513c7810e77fcaab5cf760222059250fd7.tar.gz gifed-8b1da8513c7810e77fcaab5cf760222059250fd7.zip |
set screen descriptor metadata
-rw-r--r-- | gifed/src/writer/mod.rs | 4 |
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) } |