about summary refs log tree commit diff
path: root/src/writer/gifbuilder.rs
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2021-03-08 21:02:50 -0600
committerGenny <gen@nyble.dev>2021-03-08 21:02:50 -0600
commita368be4dfb3c1f75f6bcfdc297fe0372fb5f6092 (patch)
tree73c85d0abc2b065d827beea5f69f28a93d74816a /src/writer/gifbuilder.rs
parentc54872f011c135bbbc963f4a2b6b1d8ee4fa92bc (diff)
downloadgifed-a368be4dfb3c1f75f6bcfdc297fe0372fb5f6092.tar.gz
gifed-a368be4dfb3c1f75f6bcfdc297fe0372fb5f6092.zip
Rename a few things
Diffstat (limited to 'src/writer/gifbuilder.rs')
-rw-r--r--src/writer/gifbuilder.rs9
1 files changed, 5 insertions, 4 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
 		}