aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-07 21:19:33 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-07 21:19:33 +0200
commit587d432677de5309724b3389d937e8a5bcece9a5 (patch)
tree2f117300b5591f65ebf397712a9cf556dfe414f1
parent83331bc7e59f483701285bcaf65dec8df80dda36 (diff)
don't do OBJ window if it isn't enabled (oops)
-rw-r--r--src/GPU2D.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp
index cc428ce..7f19833 100644
--- a/src/GPU2D.cpp
+++ b/src/GPU2D.cpp
@@ -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);