mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Print frame which shows issue
This commit is contained in:
parent
b78b888ce3
commit
a562a4f600
1 changed files with 10 additions and 0 deletions
|
@ -47,7 +47,17 @@ fn main(mut gba: agb::Gba) -> ! {
|
|||
bg.commit();
|
||||
bg.show();
|
||||
|
||||
let mut frame = 0;
|
||||
|
||||
loop {
|
||||
vblank.wait_for_vblank();
|
||||
|
||||
let mut writer = FONT.render_text((4u16, 0u16).into(), 1, 2, &mut bg, &mut vram);
|
||||
|
||||
writeln!(&mut writer, "Frame {}", frame).unwrap();
|
||||
writer.commit();
|
||||
bg.commit();
|
||||
|
||||
frame += 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue