don't do OBJ window if it isn't enabled (oops)

This commit is contained in:
Arisotura 2019-05-07 21:19:33 +02:00
parent 83331bc7e5
commit 587d432677
1 changed files with 1 additions and 1 deletions

View File

@ -1019,7 +1019,7 @@ void GPU2D::CalculateWindowMask(u32 line, u8* mask)
for (u32 i = 0; i < 256; i++)
mask[i] = WinCnt[2]; // window outside
if (DispCnt & ((1<<15)|(1<<12)))
if ((DispCnt & (1<<15)) && (DispCnt & (1<<12)))
{
// OBJ window
DrawSpritesWindow(line, mask);