mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
fix examples
This commit is contained in:
parent
4aff120c68
commit
52a97594fd
|
@ -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();
|
||||||
|
|
|
@ -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 {}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue