From 55e4700bc7588f4e9775941ab150887c3ab93422 Mon Sep 17 00:00:00 2001 From: Xavi Del Campo Date: Sat, 1 Feb 2020 11:23:06 +0100 Subject: [PATCH] Minor change on COLORMODE definition --- libpsx/include/psxgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. *