fix examples

This commit is contained in:
Corwin Kuiper 2021-06-12 20:59:30 +01:00
parent 4aff120c68
commit 52a97594fd
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ pub fn main() -> ! {
gfx.set_background_tilemap(0, &MAP_TILES); gfx.set_background_tilemap(0, &MAP_TILES);
let mut background = gfx.get_background().unwrap(); let mut background = gfx.get_background().unwrap();
background.draw_full_map(&MAP_MAP, (32_u32, 32_u32).into()); background.draw_full_map(&MAP_MAP, (32_u32, 32_u32).into(), 0);
background.show(); background.show();
let mut object = gba.display.object.get(); let mut object = gba.display.object.get();

View file

@ -21,7 +21,7 @@ pub fn main() -> ! {
entries[tile_id as usize] = tile_id | (palette_entry << 12); entries[tile_id as usize] = tile_id | (palette_entry << 12);
} }
back.draw_full_map(&entries, (30_u32, 20_u32).into()); back.draw_full_map(&entries, (30_u32, 20_u32).into(), 0);
back.show(); back.show();
loop {} loop {}

View file

@ -15,7 +15,7 @@ fn logo_display(gba: &mut crate::Gba) {
entries[tile_id as usize] = tile_id | (palette_entry << 12); entries[tile_id as usize] = tile_id | (palette_entry << 12);
} }
back.draw_full_map(&entries, (30_u32, 20_u32).into()); back.draw_full_map(&entries, (30_u32, 20_u32).into(), 0);
back.show(); back.show();
crate::assert_image_output("gfx/test_logo.png"); crate::assert_image_output("gfx/test_logo.png");