aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include
diff options
context:
space:
mode:
authorJakub CzekaƄski <ja.czekanski@gmail.com>2019-11-29 17:55:38 +0100
committerGitHub <noreply@github.com>2019-11-29 17:55:38 +0100
commit111c49599d8278706995a8049ebcbd3c75825827 (patch)
tree063a9a6220579d75f2e2796070181111a199cc74 /libpsn00b/include
parent9fe469298de9761ee53776eff20f35b9b20f952e (diff)
downloadpsn00bsdk-111c49599d8278706995a8049ebcbd3c75825827.tar.gz
Fix setDrawMask macro
Missing parenthesis caused compilation error when passing a reference to DR_MASK
Diffstat (limited to 'libpsn00b/include')
-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