DS Video: Fix forced blank GBA-mode rendering

This commit is contained in:
Vicki Pfau 2022-06-05 04:19:17 -07:00
parent 6aaa0ef680
commit 79e7528a30
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,7 @@ Bugfixes:
- DS GX: Fix overflow causing a division crash
- DS Video: Use separate value for maximum sprite cycles (fixes mgba.io/i/624)
- DS Memory: Fix crash when overflowing misaligned WRAM jump
- DS Video: Fix forced blank GBA-mode rendering
Misc:
- ARM: Add F-block instruction decoding
- DS Audio: Defer mixer updates until needed

View File

@ -391,10 +391,9 @@ static void DSVideoSoftwareRendererDrawGBAScanline(struct GBAVideoRenderer* rend
}
int x;
color_t* row = &softwareRenderer->outputBuffer[softwareRenderer->outputBufferStride * y];
if (GBARegisterDISPCNTIsForcedBlank(softwareRenderer->dispcnt)) {
for (x = 0; x < softwareRenderer->masterEnd; ++x) {
row[x] = M_COLOR_WHITE;
softwareRenderer->row[x] = M_COLOR_WHITE;
}
return;
}