mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix DISPSTAT write after refactor
This commit is contained in:
parent
e85e8968f2
commit
6d08ed3dd8
|
@ -297,7 +297,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
|||
case REG_DISPSTAT:
|
||||
value &= 0xFFF8;
|
||||
GBAVideoWriteDISPSTAT(&gba->video, value);
|
||||
break;
|
||||
return;
|
||||
|
||||
// Audio
|
||||
case REG_SOUND1CNT_LO:
|
||||
|
|
|
@ -169,7 +169,7 @@ int32_t GBAVideoProcessEvents(struct GBAVideo* video, int32_t cycles) {
|
|||
|
||||
void GBAVideoWriteDISPSTAT(struct GBAVideo* video, uint16_t value) {
|
||||
video->p->memory.io[REG_DISPSTAT >> 1] &= 0x7;
|
||||
video->p->memory.io[REG_DISPSTAT >> 1] |= value & 0xFFF8;
|
||||
video->p->memory.io[REG_DISPSTAT >> 1] |= value;
|
||||
|
||||
uint16_t dispstat = video->p->memory.io[REG_DISPSTAT >> 1];
|
||||
|
||||
|
|
Loading…
Reference in New Issue