From 14cd1e52c4ec2e1eebd03160597760fee6fddf8c Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 28 Mar 2022 21:53:54 +0100 Subject: [PATCH] Make the screen visible when enabling a tiled mode --- agb/src/display/mod.rs | 3 +++ 1 file changed, 3 insertions(+) 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); }