Fix bug in MODE0 where BG3 would not be rendered due to inconclusive range, thank you Rust.

Former-commit-id: 6dd8ce110d212083cba394f08488d4fffdf6d015
This commit is contained in:
Michel Heily 2019-11-16 18:10:49 +02:00
parent 46931a1f6a
commit 4c3862543e

View file

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