Actually set the correct flag

This commit is contained in:
Gwilym Kuiper 2022-05-03 21:51:00 +01:00
parent cc57dcf649
commit 4f2eddb367

View file

@ -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);