GB Video: Render SGB border when unmasking with ATTR/PAL_SET (fixes #2261)

This commit is contained in:
Vicki Pfau 2021-07-28 22:32:12 -07:00
parent c2f40b88ef
commit 06318fbdd2
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Features:
- Additional scaling shaders
Emulation fixes:
- GB Memory: Add cursory cartridge open bus emulation (fixes mgba.io/i/2032)
- GB Video: Render SGB border when unmasking with ATTR/PAL_SET (fixes mgba.io/i/2261)
- GBA: Improve timing when not booting from BIOS
- GBA SIO: Fix SI value for unattached MULTI mode
- GBA Video: Fix backdrop color if DISPCNT is first set to 0 (fixes mgba.io/i/2260)

View File

@ -780,6 +780,9 @@ static void GBVideoSoftwareRendererFinishFrame(struct GBVideoRenderer* renderer)
case SGB_ATTR_SET:
if (softwareRenderer->sgbPacket[1] & 0x40) {
renderer->sgbRenderMode = 0;
if (softwareRenderer->sgbBorders) {
_regenerateSGBBorder(softwareRenderer);
}
}
break;
case SGB_PAL_TRN: