From de3fda828dae5015dcadb7018188f80a4f265dcb Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 12 Aug 2001 02:30:17 +0000 Subject: Fixed particle colors for real this time. Worked around a crash (DIV_FIXED by zero) that happens when the Alien level FERARCO starts. --- src/fixer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fixer.h') diff --git a/src/fixer.h b/src/fixer.h index d5c1549..42e088e 100644 --- a/src/fixer.h +++ b/src/fixer.h @@ -41,8 +41,7 @@ extern "C" { /* #define _mbclen strlen */ size_t _mbclen(const unsigned char *s); -//#define RGBA_MAKE(r,g,b,a) (((r) << 24) | ((g) << 16) | ((b) << 8) | (a)) -#define RGBA_MAKE(r,g,b,a) ((((unsigned char)a) << 24) | (((unsigned char)b) << 16) | (((unsigned char)g) << 8) | ((unsigned char)r)) +#define RGBA_MAKE(r, g, b, a) ((((a) << 24) | ((r) << 16) | ((g) << 8) | (b))) #define MAX_PATH PATH_MAX -- cgit v1.3