core/gpu/bugfix: Use correct bitmask when writing to DISPSTAT

Accidently used 5 (0b0101) instead of 7 (0b0111)


Former-commit-id: f690dd3f591bef10c5dd280d46be22cd339498a2
This commit is contained in:
Michel Heily 2020-03-13 16:23:00 +02:00
parent aa0f708302
commit 7f34e8bd08

View file

@ -121,7 +121,7 @@ impl Bus for IoDevices {
let io_addr = addr + IO_BASE;
match io_addr {
REG_DISPCNT => io.gpu.dispcnt.0 = value,
REG_DISPSTAT => io.gpu.dispstat.0 = value | (io.gpu.dispstat.0 & 5),
REG_DISPSTAT => io.gpu.dispstat.0 = value | (io.gpu.dispstat.0 & 7),
REG_BG0CNT => io.gpu.backgrounds[0].bgcnt.0 = value,
REG_BG1CNT => io.gpu.backgrounds[1].bgcnt.0 = value,
REG_BG2CNT => io.gpu.backgrounds[2].bgcnt.0 = value,