From a2c92b1e12f7483aa07ea8b6769e2f3fe566b06a Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 3 Jul 2021 11:31:06 +0100 Subject: [PATCH] move deprecated function call to replacement function --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c3134bd..a21174d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -199,7 +199,7 @@ fn palette_from(bg: &bitsy_parser::Colour, fg: &bitsy_parser::Colour) -> bitsy_p } fn render_preview(state: &State) -> DynamicImage { - let mut buffer = state.image.as_ref().unwrap().clone().into_rgba(); + let mut buffer = state.image.as_ref().unwrap().clone().into_rgba8(); let palette = match &state.palette { SelectedPalette::None => bitsy_parser::mock::game_default().palettes[0].clone(),