Use the correct transparent colour

This commit is contained in:
Gwilym Kuiper 2022-10-08 16:45:58 +01:00
parent 1a51b3b502
commit ea75823900

View file

@ -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);