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(),