GB Video: Hblank IRQs should mask LYC=LY IRQs (fixes #466)
Jeffrey Pfau jeffrey@endrift.com
Fri, 23 Dec 2016 17:11:19 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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);