diff --git a/src/video/bitmap.rs b/src/video/bitmap.rs index 7736226..a716d9c 100644 --- a/src/video/bitmap.rs +++ b/src/video/bitmap.rs @@ -107,7 +107,7 @@ impl Mode4 { const PAGE0_BLOCK: VolAddressBlock = unsafe { VolAddressBlock::new_unchecked(Self::PAGE0_BASE, Self::SCREEN_PIXEL_COUNT) }; // TODO: newtype this? - const PAGE1_BASE: VolAddress = unsafe { VolAddress::new_unchecked(VRAM_BASE_USIZE + 0x9600) }; + const PAGE1_BASE: VolAddress = unsafe { VolAddress::new_unchecked(VRAM_BASE_USIZE + 0xA000) }; // TODO: newtype this? const PAGE1_BLOCK: VolAddressBlock = unsafe { VolAddressBlock::new_unchecked(Self::PAGE1_BASE, Self::SCREEN_PIXEL_COUNT) }; @@ -204,7 +204,7 @@ impl Mode4 { let write_target = if page1 { VRAM_BASE_USIZE as *mut u32 } else { - (VRAM_BASE_USIZE + 0x9600) as *mut u32 + (VRAM_BASE_USIZE + 0xA000) as *mut u32 }; unsafe { DMA3::fill32(&bulk_color, write_target, Self::SCREEN_U32_COUNT as u16) }; }