mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Use the correct transparent colour
This commit is contained in:
parent
1a51b3b502
commit
ea75823900
|
@ -72,7 +72,7 @@ pub fn include_gfx(input: TokenStream) -> TokenStream {
|
||||||
|
|
||||||
let images = config.images();
|
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_offsets = HashMap::new();
|
||||||
let mut assignment_offset = 0;
|
let mut assignment_offset = 0;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ pub fn include_gfx(input: TokenStream) -> TokenStream {
|
||||||
&mut optimiser,
|
&mut optimiser,
|
||||||
&image,
|
&image,
|
||||||
tile_size,
|
tile_size,
|
||||||
settings.transparent_colour(),
|
config.transparent_colour(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let num_tiles = image.width * image.height / settings.tilesize().to_size().pow(2);
|
let num_tiles = image.width * image.height / settings.tilesize().to_size().pow(2);
|
||||||
|
|
Loading…
Reference in a new issue