From a368be4dfb3c1f75f6bcfdc297fe0372fb5f6092 Mon Sep 17 00:00:00 2001 From: Genny Date: Mon, 8 Mar 2021 21:02:50 -0600 Subject: Rename a few things --- src/writer/gifbuilder.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/writer/gifbuilder.rs') 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 } -- cgit 1.4.1-3-g733a5