diff options
| author | Jakub CzekaĆski <ja.czekanski@gmail.com> | 2019-11-29 17:55:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-29 17:55:38 +0100 |
| commit | 111c49599d8278706995a8049ebcbd3c75825827 (patch) | |
| tree | 063a9a6220579d75f2e2796070181111a199cc74 | |
| parent | 9fe469298de9761ee53776eff20f35b9b20f952e (diff) | |
| download | psn00bsdk-111c49599d8278706995a8049ebcbd3c75825827.tar.gz | |
Fix setDrawMask macro
Missing parenthesis caused compilation error when passing a reference to DR_MASK
| -rw-r--r-- | libpsn00b/include/psxgpu.h | 4 |
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 |
