GBA Video: Swap priority and window rendering order

This commit is contained in:
Vicki Pfau 2021-08-14 15:51:44 -07:00
parent 2fec366076
commit 8fb37c6036
1 changed files with 6 additions and 6 deletions

View File

@ -570,12 +570,12 @@ static void GBAVideoSoftwareRendererDrawScanline(struct GBAVideoRenderer* render
int w; int w;
unsigned priority; unsigned priority;
for (priority = 0; priority < 4; ++priority) { softwareRenderer->end = 0;
softwareRenderer->end = 0; for (w = 0; w < softwareRenderer->nWindows; ++w) {
for (w = 0; w < softwareRenderer->nWindows; ++w) { softwareRenderer->start = softwareRenderer->end;
softwareRenderer->start = softwareRenderer->end; softwareRenderer->end = softwareRenderer->windows[w].endX;
softwareRenderer->end = softwareRenderer->windows[w].endX; softwareRenderer->currentWindow = softwareRenderer->windows[w].control;
softwareRenderer->currentWindow = softwareRenderer->windows[w].control; for (priority = 0; priority < 4; ++priority) {
if (spriteLayers & (1 << priority)) { if (spriteLayers & (1 << priority)) {
GBAVideoSoftwareRendererPostprocessSprite(softwareRenderer, priority); GBAVideoSoftwareRendererPostprocessSprite(softwareRenderer, priority);
} }