mirror of https://github.com/mgba-emu/mgba.git
DS Video: Fix forced blank GBA-mode rendering
This commit is contained in:
parent
6aaa0ef680
commit
79e7528a30
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue