summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-02-01 11:23:06 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-02-01 11:23:06 +0100
commit55e4700bc7588f4e9775941ab150887c3ab93422 (patch)
tree9430a352e6d73fe305813dc6f43ae33834611cee
parenta8fb8794571be967dd8a0ed9ea8fee8cf6f33fb9 (diff)
Minor change on COLORMODE definition
-rw-r--r--libpsx/include/psxgpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpsx/include/psxgpu.h b/libpsx/include/psxgpu.h
index 174569c..53c53d9 100644
--- a/libpsx/include/psxgpu.h
+++ b/libpsx/include/psxgpu.h
@@ -525,7 +525,7 @@ enum psx_gpu_texmodes
/**
* Macro to specify texture color mode, takes a value from psx_gpu_texmodes
*/
-#define COLORMODE(x) x&3
+#define COLORMODE(x) ((x) & 3)
/**
* Macro to specify translucency/semitransparency mode, where x can be a value from 0 to 3.
*