From 4c3862543e267546139e330bb18ff477508fc117 Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Sat, 16 Nov 2019 18:10:49 +0200 Subject: [PATCH] Fix bug in MODE0 where BG3 would not be rendered due to inconclusive range, thank you Rust. Former-commit-id: 6dd8ce110d212083cba394f08488d4fffdf6d015 --- src/core/gpu/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu/mod.rs b/src/core/gpu/mod.rs index 6c70356..bb47518 100644 --- a/src/core/gpu/mod.rs +++ b/src/core/gpu/mod.rs @@ -398,7 +398,7 @@ impl Gpu { // TODO - also render objs match self.dispcnt.mode() { 0 => { - for bg in 0..3 { + for bg in 0..4 { if self.dispcnt.disp_bg(bg) { self.scanline_reg_bg(bg, sb); }