all repos — mgba @ 73777259524e6ffc48f330f7c77f2e0bb86ad706

mGBA Game Boy Advance Emulator

GB Video: Fix OBJ/BG priority
Jeffrey Pfau jeffrey@endrift.com
Mon, 23 May 2016 21:57:29 -0700
commit

73777259524e6ffc48f330f7c77f2e0bb86ad706

parent

0f16569e7d89352158ec9ca6ea2dae745802636c

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

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

@@ -297,7 +297,7 @@ }

if (GBRegisterLCDCIsObjSize(renderer->lcdc) && obj->tile & 1) { --tileOffset; } - uint8_t mask = GBObjAttributesIsPriority(obj->attr) ? 0xE3 : 0x60; + uint8_t mask = GBObjAttributesIsPriority(obj->attr) ? 0x63 : 0x60; uint8_t mask2 = GBObjAttributesIsPriority(obj->attr) ? 0 : 0x83; int p; if (renderer->model >= GB_MODEL_CGB) {