diff --git a/agb/examples/dma_effect_background_colour.rs b/agb/examples/dma_effect_background_colour.rs index 57c969e9..f7386c59 100644 --- a/agb/examples/dma_effect_background_colour.rs +++ b/agb/examples/dma_effect_background_colour.rs @@ -25,7 +25,7 @@ fn main(mut gba: agb::Gba) -> ! { let dma = gba.dma.dma().dma0; - example_logo::display_logo(&mut map, &mut vram); + example_logo::display_logo_basic(&mut map, &mut vram); let vblank = VBlank::get(); diff --git a/agb/gfx/test_logo.aseprite b/agb/gfx/test_logo.aseprite new file mode 100644 index 00000000..4656258c Binary files /dev/null and b/agb/gfx/test_logo.aseprite differ diff --git a/agb/gfx/test_logo.png b/agb/gfx/test_logo.png index 97b139de..b5e342de 100644 Binary files a/agb/gfx/test_logo.png and b/agb/gfx/test_logo.png differ diff --git a/agb/gfx/test_logo_basic.png b/agb/gfx/test_logo_basic.png new file mode 100644 index 00000000..97b139de Binary files /dev/null and b/agb/gfx/test_logo_basic.png differ diff --git a/agb/src/display/example_logo.rs b/agb/src/display/example_logo.rs index 66d98442..4b6295f2 100644 --- a/agb/src/display/example_logo.rs +++ b/agb/src/display/example_logo.rs @@ -1,6 +1,7 @@ use super::tiled::{RegularMap, TiledMap, VRamManager}; crate::include_background_gfx!(crate, agb_logo, test_logo => deduplicate "gfx/test_logo.png"); +crate::include_background_gfx!(crate, agb_logo_basic, test_logo => deduplicate "gfx/test_logo_basic.png"); pub fn display_logo(map: &mut RegularMap, vram: &mut VRamManager) { vram.set_background_palettes(agb_logo::PALETTES); @@ -11,6 +12,15 @@ pub fn display_logo(map: &mut RegularMap, vram: &mut VRamManager) { map.set_visible(true); } +pub fn display_logo_basic(map: &mut RegularMap, vram: &mut VRamManager) { + vram.set_background_palettes(agb_logo_basic::PALETTES); + + map.fill_with(vram, &agb_logo_basic::test_logo); + + map.commit(vram); + map.set_visible(true); +} + #[cfg(test)] mod tests { use crate::display::{tiled::RegularBackgroundSize, Priority};