diff --git a/agb/src/display/mod.rs b/agb/src/display/mod.rs index c18ec604..6d9ceb83 100644 --- a/agb/src/display/mod.rs +++ b/agb/src/display/mod.rs @@ -89,6 +89,9 @@ unsafe fn set_graphics_mode(mode: DisplayMode) { let current = current & (!0b111); let s = current | (mode as u16 & 0b111); + // disable blank screen + let s = s & !(1 << 7); + DISPLAY_CONTROL.set(s); } diff --git a/agb/src/display/tiled/tiled0.rs b/agb/src/display/tiled/tiled0.rs index 86b73876..ad5da7fb 100644 --- a/agb/src/display/tiled/tiled0.rs +++ b/agb/src/display/tiled/tiled0.rs @@ -2,7 +2,7 @@ use core::cell::RefCell; use crate::{ bitarray::Bitarray, - display::{set_graphics_mode, set_graphics_settings, DisplayMode, GraphicsSettings, Priority}, + display::{set_graphics_mode, DisplayMode, Priority}, }; use super::{MapLoan, RegularMap}; @@ -13,7 +13,6 @@ pub struct Tiled0 { impl Tiled0 { pub(crate) unsafe fn new() -> Self { - set_graphics_settings(GraphicsSettings::empty() | GraphicsSettings::SPRITE1_D); set_graphics_mode(DisplayMode::Tiled0); Self {