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
070064dd78
commit
01b7ffe0d6
1
CHANGES
1
CHANGES
|
@ -31,6 +31,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:
|
||||
- PSP2: Improved controller rumble
|
||||
- GB, GBA: Prevent loading null ROMs
|
||||
|
|
|
@ -131,7 +131,7 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) {
|
|||
struct mCoreThread* thread = mCoreThreadGet();
|
||||
mCoreThreadFrameEnded(thread);
|
||||
}
|
||||
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