mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Smear the loading of the splash screens
This commit is contained in:
parent
94662eb982
commit
bdcd5b5e6d
|
@ -55,6 +55,19 @@ pub fn show_splash_screen(
|
|||
TileSetting::from_raw(y * 30 + x),
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(ref mut mixer) = mixer {
|
||||
if let Some(ref mut music_box) = music_box {
|
||||
music_box.before_frame(mixer);
|
||||
}
|
||||
mixer.frame();
|
||||
}
|
||||
|
||||
vblank.wait_for_vblank();
|
||||
|
||||
if let Some(ref mut mixer) = mixer {
|
||||
mixer.after_vblank();
|
||||
}
|
||||
}
|
||||
|
||||
map.commit();
|
||||
|
@ -84,6 +97,7 @@ pub fn show_splash_screen(
|
|||
}
|
||||
|
||||
map.hide();
|
||||
map.clear(vram);
|
||||
|
||||
vram.remove_tileset(tile_set_ref);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue