This commit is contained in:
Max Bradbury 2020-11-07 13:48:38 +00:00
parent 45ef41c366
commit 31d7ff52ca
1 changed files with 3 additions and 5 deletions

View File

@ -166,8 +166,6 @@ fn image_to_base64(image: &DynamicImage) -> String {
fn render_preview(state: &State) -> DynamicImage {
let mut buffer = state.image.as_ref().unwrap().clone().into_rgba();
// todo get actual chosen palette
let palette_id = state.palette.as_ref().unwrap();
let palette = *&state.game.as_ref().unwrap().get_palette(palette_id).unwrap();
let colour_map = crate::ColourMap::from(palette);