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 } ], }, };