all repos — mgba @ f47b6881fc2d3f984794c33ff48c25efe4303a3a

mGBA Game Boy Advance Emulator

GB Video: Fix OBJ ordering mask
Jeffrey Pfau jeffrey@endrift.com
Tue, 16 Feb 2016 23:22:40 -0800
commit

f47b6881fc2d3f984794c33ff48c25efe4303a3a

parent

9d209aa9bb48c2f6431e59f2c8395205d9b3d3a1

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

jump to
M src/gb/renderers/software.csrc/gb/renderers/software.c

@@ -282,7 +282,7 @@ if (GBRegisterLCDCIsObjSize(renderer->lcdc) && y - obj->y >= -8) {

++tileOffset; } } - uint8_t mask = GBObjAttributesIsPriority(obj->attr) ? ~0x1C : ~0x3F; + uint8_t mask = GBObjAttributesIsPriority(obj->attr) ? ~0x1C : ~0x1F; int p; if (renderer->model >= GB_MODEL_CGB) { p = (GBObjAttributesGetCGBPalette(obj->attr) + 8) * 4;