diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-08-12 01:26:18 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | ae2906ca8302cd41f05582232799b35e0b05414d (patch) | |
| tree | dab13d79c60a42b1b7a8efb96ca2af190dbcbdb2 /src/fixer.h | |
| parent | 56982d4e9b5b1fe64c78ebe007811c37d212f06a (diff) | |
Fixed particle blending.
Diffstat (limited to 'src/fixer.h')
| -rw-r--r-- | src/fixer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fixer.h b/src/fixer.h index 0c81f88..d5c1549 100644 --- a/src/fixer.h +++ b/src/fixer.h @@ -41,7 +41,8 @@ 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) (((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 MAX_PATH PATH_MAX |
