mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
fix examples and tests
This commit is contained in:
parent
c106efa8b9
commit
b0329bdcea
|
@ -55,7 +55,7 @@ pub fn main() -> ! {
|
|||
gfx.set_background_tilemap(0, &MAP_TILES);
|
||||
|
||||
let mut background = gfx.get_background().unwrap();
|
||||
background.set_map(&MAP_MAP, 32, 32);
|
||||
background.draw_full_map(&MAP_MAP, 32, 32);
|
||||
background.show();
|
||||
|
||||
let mut object = gba.display.object.get();
|
||||
|
|
|
@ -21,8 +21,7 @@ pub fn main() -> ! {
|
|||
entries[tile_id as usize] = tile_id | (palette_entry << 12);
|
||||
}
|
||||
|
||||
back.set_map(&entries, 30, 20);
|
||||
back.set_position(0, 0);
|
||||
back.draw_full_map(&entries, 30, 20);
|
||||
back.show();
|
||||
|
||||
loop {}
|
||||
|
|
|
@ -15,8 +15,7 @@ fn logo_display(gba: &mut crate::Gba) {
|
|||
entries[tile_id as usize] = tile_id | (palette_entry << 12);
|
||||
}
|
||||
|
||||
back.set_map(&entries, 30, 20);
|
||||
back.set_position(0, 0);
|
||||
back.draw_full_map(&entries, 30, 20);
|
||||
back.show();
|
||||
|
||||
crate::assert_image_output("gfx/test_logo.png");
|
||||
|
|
Loading…
Reference in a new issue