summaryrefslogtreecommitdiff
path: root/src/fixer.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-12 02:30:17 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commitde3fda828dae5015dcadb7018188f80a4f265dcb (patch)
tree4474b8f156c5796d247efb80bcabb70194002f6e /src/fixer.h
parentae2906ca8302cd41f05582232799b35e0b05414d (diff)
Fixed particle colors for real this time.
Worked around a crash (DIV_FIXED by zero) that happens when the Alien level FERARCO starts.
Diffstat (limited to 'src/fixer.h')
-rw-r--r--src/fixer.h3
1 files changed, 1 insertions, 2 deletions
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