From 111c49599d8278706995a8049ebcbd3c75825827 Mon Sep 17 00:00:00 2001 From: Jakub CzekaƄski Date: Fri, 29 Nov 2019 17:55:38 +0100 Subject: Fix setDrawMask macro Missing parenthesis caused compilation error when passing a reference to DR_MASK --- libpsn00b/include/psxgpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpsn00b/include') 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 -- cgit v1.2.3