all repos — mgba @ eaec17488e6d837c47a7f7ff07b3421328d5fcf2

mGBA Game Boy Advance Emulator

GB Video: Hblank IRQs should mask LYC=LY IRQs (fixes #466)
Jeffrey Pfau jeffrey@endrift.com
Fri, 23 Dec 2016 17:11:19 -0800
commit

eaec17488e6d837c47a7f7ff07b3421328d5fcf2

parent

2bd8dd2fa299679629972e3a66c28e6004307e0c

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -42,6 +42,7 @@ - Qt: Fix Apply button for key and controller configurations

- GB Video: Initialize LCDC in renderer - GBA I/O: Mask off WAITCNT bits that cannot be written - GB Memory: Fix HDMA5 value after DMA completes + - GB Video: Hblank IRQs should mask LYC=LY IRQs Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gb/video.csrc/gb/video.c

@@ -138,7 +138,7 @@ if (callbacks && callbacks->videoFrameEnded) {

callbacks->videoFrameEnded(callbacks->context); } } - if (GBRegisterSTATIsLYCIRQ(video->stat) && lyc == video->ly) { + if (!GBRegisterSTATIsHblankIRQ(video->stat) && GBRegisterSTATIsLYCIRQ(video->stat) && lyc == video->ly) { video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT); } GBUpdateIRQs(video->p);