mirror of https://github.com/mgba-emu/mgba.git
GB Video: Hblank IRQs should mask LYC=LY IRQs (fixes #466)
This commit is contained in:
parent
2bd8dd2fa2
commit
eaec17488e
1
CHANGES
1
CHANGES
|
@ -42,6 +42,7 @@ Bugfixes:
|
|||
- 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
|
||||
|
|
|
@ -138,7 +138,7 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue