diff options
Diffstat (limited to 'src/writer')
-rw-r--r-- | src/writer/gifbuilder.rs | 9 | ||||
-rw-r--r-- | src/writer/imagebuilder.rs | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/writer/gifbuilder.rs b/src/writer/gifbuilder.rs index 6ae55d5..415ebf6 100644 --- a/src/writer/gifbuilder.rs +++ b/src/writer/gifbuilder.rs @@ -1,5 +1,6 @@ -use crate::components::{ColorTable, Gif, LogicalScreenDescriptor, Version}; -use super::ImageBuilder; +use crate::block::{ColorTable, ScreenDescriptor, Version}; +use crate::writer::ImageBuilder; +use crate::Gif; pub struct GifBuilder { version: Version, @@ -44,7 +45,7 @@ impl GifBuilder { } pub fn build(self) -> Gif { - let mut lsd = LogicalScreenDescriptor { + let mut lsd = ScreenDescriptor { width: self.width, height: self.height, packed: 0, // Set later @@ -64,7 +65,7 @@ impl GifBuilder { Gif { header: self.version, - logical_screen_descriptor: lsd, + screen_descriptor: lsd, global_color_table: self.global_color_table, images } diff --git a/src/writer/imagebuilder.rs b/src/writer/imagebuilder.rs index 0636bb3..d8b9900 100644 --- a/src/writer/imagebuilder.rs +++ b/src/writer/imagebuilder.rs @@ -1,4 +1,4 @@ -use crate::components::{ColorTable, Image, ImageDescriptor}; +use crate::block::{ColorTable, Image, ImageDescriptor}; pub struct ImageBuilder { left_offset: u16, |