From ea75823900343dad7a6437dfad3697b3ce5e6b32 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 8 Oct 2022 16:45:58 +0100 Subject: [PATCH] Use the correct transparent colour --- agb-image-converter/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb-image-converter/src/lib.rs b/agb-image-converter/src/lib.rs index 8d6e7183..2d5506eb 100644 --- a/agb-image-converter/src/lib.rs +++ b/agb-image-converter/src/lib.rs @@ -72,7 +72,7 @@ pub fn include_gfx(input: TokenStream) -> TokenStream { let images = config.images(); - let mut optimiser = Palette16Optimiser::new(None); + let mut optimiser = Palette16Optimiser::new(config.transparent_colour()); let mut assignment_offsets = HashMap::new(); let mut assignment_offset = 0; @@ -93,7 +93,7 @@ pub fn include_gfx(input: TokenStream) -> TokenStream { &mut optimiser, &image, tile_size, - settings.transparent_colour(), + config.transparent_colour(), ); let num_tiles = image.width * image.height / settings.tilesize().to_size().pow(2);