summaryrefslogtreecommitdiffstats
path: root/common/defines.h
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-04-28 18:23:08 +0000
committerjsorg71 <jsorg71>2007-04-28 18:23:08 +0000
commit99e7f9d8ca8b6f09e88efc4fc394d0fb3fa1754f (patch)
tree35b0fc70b47a5921197e062fd885c5220970a9f6 /common/defines.h
parent1cd6c0c2fc74b045cf5f3f4189ce54cb9fbc8834 (diff)
downloadxrdp-proprietary-99e7f9d8ca8b6f09e88efc4fc394d0fb3fa1754f.tar.gz
xrdp-proprietary-99e7f9d8ca8b6f09e88efc4fc394d0fb3fa1754f.zip
need 24 bit RGB and BGR macros
Diffstat (limited to 'common/defines.h')
-rw-r--r--common/defines.h3
1 files changed, 2 insertions, 1 deletions
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); \