diff --git a/src/processor/gpu.rs b/src/processor/gpu.rs index 61eb6a7..045df97 100644 --- a/src/processor/gpu.rs +++ b/src/processor/gpu.rs @@ -289,6 +289,11 @@ impl CPU { if lcdc.window_enable { self.render_scanline_window(scanline, lcdc, palette); } + } else { + for x in 0..WIDTH { + self.gpu.buffer[(scanline as usize * WIDTH) + x] = + Colour::from_u8_rgb(255, 255, 255); + } } if lcdc.obj_enable { self.render_scanline_obj(scanline, lcdc);