GB Video: Fix SGB borders drawing erroneously (fixes #1060)

This commit is contained in:
Vicki Pfau 2018-04-21 21:33:28 -07:00
parent af3384a60f
commit 2ca96050f6
1 changed files with 2 additions and 6 deletions

View File

@ -378,12 +378,8 @@ static void GBVideoSoftwareRendererWriteSGBPacket(struct GBVideoRenderer* render
break;
case SGB_ATRC_EN:
if (softwareRenderer->sgbBorders && !renderer->sgbRenderMode) {
_regenerateSGBBorder(softwareRenderer);
}
break;
case SGB_MASK_EN:
if (!renderer->sgbRenderMode) {
if (softwareRenderer->sgbBorders && !renderer->sgbRenderMode) {
_regenerateSGBBorder(softwareRenderer);
}
}
@ -412,7 +408,7 @@ static void GBVideoSoftwareRendererWritePalette(struct GBVideoRenderer* renderer
renderer->writePalette(renderer, 0x50, value);
renderer->writePalette(renderer, 0x60, value);
renderer->writePalette(renderer, 0x70, value);
if (!renderer->sgbRenderMode) {
if (softwareRenderer->sgbBorders && !renderer->sgbRenderMode) {
_regenerateSGBBorder(softwareRenderer);
}
}