Skip to content

Commit

Permalink
GBA Video: Fix OBJ blending regression (fix #1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Apr 14, 2018
1 parent a6c0ac9 commit 6204599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gba/renderers/video-software.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ static void GBAVideoSoftwareRendererDrawScanline(struct GBAVideoRenderer* render
}
if (softwareRenderer->target1Obj && (softwareRenderer->blendEffect == BLEND_DARKEN || softwareRenderer->blendEffect == BLEND_BRIGHTEN)) {
x = 0;
uint32_t mask = 0xFF000000 & ~FLAG_OBJWIN;
uint32_t mask = FLAG_REBLEND | FLAG_TARGET_1 | FLAG_IS_BACKGROUND;
uint32_t match = FLAG_REBLEND;
if (GBARegisterDISPCNTIsObjwinEnable(softwareRenderer->dispcnt)) {
mask |= FLAG_OBJWIN;
Expand Down

0 comments on commit 6204599

Please sign in to comment.