mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Print frame which shows issue
This commit is contained in:
parent
b78b888ce3
commit
a562a4f600
|
@ -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…
Reference in a new issue