GB Video: Always clean OAM at x 0
Vicki Pfau vi@endrift.com
Sun, 27 Dec 2020 01:42:44 -0800
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/gb/renderers/software.c
→
src/gb/renderers/software.c
@@ -595,10 +595,10 @@ } else if (!softwareRenderer->d.disableBG) {
memset(&softwareRenderer->row[startX], 0, (endX - startX) * sizeof(softwareRenderer->row[0])); } + if (startX == 0) { + _cleanOAM(softwareRenderer, y); + } if (GBRegisterLCDCIsObjEnable(softwareRenderer->lcdc) && !softwareRenderer->d.disableOBJ) { - if (startX == 0) { - _cleanOAM(softwareRenderer, y); - } int i; for (i = 0; i < softwareRenderer->objMax; ++i) { GBVideoSoftwareRendererDrawObj(softwareRenderer, &softwareRenderer->obj[i], startX, endX, y);