change everything to explicitly use u32

This commit is contained in:
Corwin Kuiper 2021-06-11 20:47:46 +01:00
parent b08e8d24be
commit 682bbc9a50
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, 32).into()); background.draw_full_map(&MAP_MAP, (32_u32, 32_u32).into());
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, 20).into()); back.draw_full_map(&entries, (30_u32, 20_u32).into());
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, 20).into()); back.draw_full_map(&entries, (30_u32, 20_u32).into());
back.show(); back.show();
crate::assert_image_output("gfx/test_logo.png"); crate::assert_image_output("gfx/test_logo.png");