all repos — mgba @ 658747839fe8dfddd43939cec8e6be8ccfe7fc9b

mGBA Game Boy Advance Emulator

GB Video: Always clean OAM at x 0
Vicki Pfau vi@endrift.com
Sun, 27 Dec 2020 01:42:44 -0800
commit

658747839fe8dfddd43939cec8e6be8ccfe7fc9b

parent

562c9ab1d97a9797d730be199f34fb2577b1be75

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/gb/renderers/software.csrc/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);