From 99e7f9d8ca8b6f09e88efc4fc394d0fb3fa1754f Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sat, 28 Apr 2007 18:23:08 +0000 Subject: need 24 bit RGB and BGR macros --- common/defines.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/defines.h') diff --git a/common/defines.h b/common/defines.h index 5ce89f19..f5e2e7d2 100644 --- a/common/defines.h +++ b/common/defines.h @@ -64,7 +64,8 @@ ) #define COLOR15(r, g, b) ((((r) >> 3) << 10) | (((g) >> 3) << 5) | ((b) >> 3)) #define COLOR16(r, g, b) ((((r) >> 3) << 11) | (((g) >> 2) << 5) | ((b) >> 3)) -#define COLOR24(r, g, b) ((r) | ((g) << 8) | ((b) << 16)) +#define COLOR24RGB(r, g, b) (((r) << 16) | ((g) << 8) | (b)) +#define COLOR24BGR(r, g, b) (((b) << 16) | ((g) << 8) | (r)) #define SPLITCOLOR15(r, g, b, c) \ { \ r = (((c) >> 7) & 0xf8) | (((c) >> 12) & 0x7); \ -- cgit v1.2.1