From 335187732a876104c118860aa310995c3c1636f3 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 18 May 2023 13:35:00 +1000 Subject: [PATCH] remove sussy vram disable in gpu mode 3 --- lib/src/processor/memory/mmio/gpu.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/src/processor/memory/mmio/gpu.rs b/lib/src/processor/memory/mmio/gpu.rs index 3702a93..2f1fff7 100644 --- a/lib/src/processor/memory/mmio/gpu.rs +++ b/lib/src/processor/memory/mmio/gpu.rs @@ -155,17 +155,11 @@ where } pub(crate) fn get_vram(&self, address: VramAddress) -> u8 { - if self.stat.mode != DrawMode::Mode3 { - self.vram.get(address) - } else { - 0xFF - } + self.vram.get(address) } pub(crate) fn set_vram(&mut self, address: VramAddress, data: u8) { - // if self.stat.mode != DrawMode::Mode3 { self.vram.set(address, data) - // } } pub(crate) fn get_oam(&self, address: OamAddress) -> u8 {