mirror of https://github.com/mgba-emu/mgba.git
GB Video: Fix off-by-one tiles
This commit is contained in:
parent
526a9ce446
commit
1898634857
|
@ -288,6 +288,9 @@ static void GBVideoSoftwareRendererDrawObj(struct GBVideoSoftwareRenderer* rende
|
|||
++tileOffset;
|
||||
}
|
||||
}
|
||||
if (GBRegisterLCDCIsObjSize(renderer->lcdc) && obj->tile & 1) {
|
||||
--tileOffset;
|
||||
}
|
||||
uint8_t mask = GBObjAttributesIsPriority(obj->attr) ? ~0x1C : ~0x1F;
|
||||
int p;
|
||||
if (renderer->model >= GB_MODEL_CGB) {
|
||||
|
|
Loading…
Reference in New Issue