aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wilbert Villamor <lameguy64@gmail.com>2019-12-07 11:55:54 +0800
committerGitHub <noreply@github.com>2019-12-07 11:55:54 +0800
commita32f227dbd17fad1c4dc29201aafebd03b4fae07 (patch)
tree063a9a6220579d75f2e2796070181111a199cc74
parent9fe469298de9761ee53776eff20f35b9b20f952e (diff)
parent111c49599d8278706995a8049ebcbd3c75825827 (diff)
downloadpsn00bsdk-a32f227dbd17fad1c4dc29201aafebd03b4fae07.tar.gz
Merge pull request #9 from JaCzekanski/patch-1
Fix setDrawMask macro
-rw-r--r--libpsn00b/include/psxgpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpsn00b/include/psxgpu.h b/libpsn00b/include/psxgpu.h
index 5f0798a..fa5dfd4 100644
--- a/libpsn00b/include/psxgpu.h
+++ b/libpsn00b/include/psxgpu.h
@@ -140,7 +140,7 @@
/* ORIGINAl CODE */
#define setDrawMask( p, sb, mt ) \
- setlen( p, 1 ), p->code[0] = sb|(mt<<1), \
+ setlen( p, 1 ), (p)->code[0] = sb|(mt<<1), \
setcode( p, 0xe6 )
@@ -584,4 +584,4 @@ DRAWENV *SetDefDrawEnv(DRAWENV *draw, int x, int y, int w, int h);
}
#endif
-#endif \ No newline at end of file
+#endif