mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix rendering of sprites with objwin passthrough (fixes #128)
This commit is contained in:
parent
25f5520b0b
commit
9ba250e9bb
|
@ -1631,6 +1631,15 @@ static void _postprocessSprite(struct GBAVideoSoftwareRenderer* renderer, unsign
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
for (x = 0; x < VIDEO_HORIZONTAL_PIXELS; ++x, ++pixel) {
|
||||||
|
uint32_t color = renderer->spriteLayer[x] & ~FLAG_OBJWIN;
|
||||||
|
uint32_t current = *pixel;
|
||||||
|
if ((color & FLAG_UNWRITTEN) != FLAG_UNWRITTEN && (color & FLAG_PRIORITY) >> OFFSET_PRIORITY == priority) {
|
||||||
|
_compositeBlendObjwin(renderer, pixel, color | flags, current);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (x = 0; x < VIDEO_HORIZONTAL_PIXELS; ++x, ++pixel) {
|
for (x = 0; x < VIDEO_HORIZONTAL_PIXELS; ++x, ++pixel) {
|
||||||
|
|
Loading…
Reference in New Issue