From 9eb090924abb7d9d04b9d9b837c815119db3d595 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 7 Nov 2020 16:32:47 +0000 Subject: [PATCH] bump --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d6d3d7a..16227c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pixsy" -version = "0.72.4" +version = "0.72.5" description = "convert images to Bitsy rooms" authors = ["Max Bradbury "] edition = "2018" diff --git a/src/lib.rs b/src/lib.rs index 5f89bc7..bc10f05 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -190,11 +190,11 @@ fn render_preview(state: &State) -> DynamicImage { let palette = match &state.palette { SelectedPalette::None => bitsy_parser::mock::game_default().palettes[0].clone(), SelectedPalette::Existing { id } => state.game.as_ref().unwrap().get_palette(id).unwrap().clone(), - SelectedPalette::New { background, foreground } => Palette { + SelectedPalette::New { background, foreground } => bitsy_parser::Palette { id: "0".to_string(), name: None, colours: vec![ - background.clone(), foreground.clone(), Colour { red: 0, green: 0, blue: 0 } + background.clone(), foreground.clone(), bitsy_parser::Colour { red: 0, green: 0, blue: 0 } ], }, };