aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-03-04 14:51:48 +0100
committerStapleButter <thetotalworm@gmail.com>2017-03-04 14:51:48 +0100
commitf8770dc8fea7d22319d17f2addd82dd4c9574ddc (patch)
treefdb57ad64add3e8b28eb452b190239ca46c14c1b
parentb6e12e0c18680cb698bd86787196cfbe3188eecc (diff)
don't blend semitransparent sprites with everything
-rw-r--r--GPU2D.cpp2
-rw-r--r--melonDS.depend2
2 files changed, 2 insertions, 2 deletions
diff --git a/GPU2D.cpp b/GPU2D.cpp
index ef7c360..14ea86e 100644
--- a/GPU2D.cpp
+++ b/GPU2D.cpp
@@ -748,7 +748,7 @@ void GPU2D::DrawScanline_Mode1(u32 line, u32* dst)
u32 coloreffect, eva, evb;
u32 flag1 = val1 >> 24;
- if (flag1 & 0x80)
+ if ((flag1 & 0x80) && (BlendCnt & ((val2 >> 16) & 0xFF00)))
{
// sprite blending
diff --git a/melonDS.depend b/melonDS.depend
index d81da60..4e93ed7 100644
--- a/melonDS.depend
+++ b/melonDS.depend
@@ -10,7 +10,7 @@
1481161027 c:\documents\sources\melonds\types.h
-1488594513 source:c:\documents\sources\melonds\nds.cpp
+1488635272 source:c:\documents\sources\melonds\nds.cpp
<stdio.h>
<string.h>
"NDS.h"