mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Swap priority and window rendering order
This commit is contained in:
parent
2fec366076
commit
8fb37c6036
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue