From 4f2eddb36734a92fe753f9b66196a30921470cf7 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 3 May 2022 21:51:00 +0100 Subject: [PATCH] Actually set the correct flag --- agb/src/display/tiled/map.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agb/src/display/tiled/map.rs b/agb/src/display/tiled/map.rs index 9f5a8b2b..c42cbeda 100644 --- a/agb/src/display/tiled/map.rs +++ b/agb/src/display/tiled/map.rs @@ -104,7 +104,9 @@ impl RegularMap { } pub fn commit(&mut self, vram: &mut VRamManager) { - let new_bg_control_value = (self.priority as u16) | ((self.screenblock as u16) << 8); + let new_bg_control_value = (self.priority as u16) + | ((self.screenblock as u16) << 8) + | (self.size.size_flag() << 14); self.bg_control_register().set(new_bg_control_value); self.bg_h_offset().set(self.x_scroll);