summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-11-09 02:29:08 +0000
committerjsorg71 <jsorg71>2005-11-09 02:29:08 +0000
commitc709446abdb9d901a278b72f5863660f13005f5e (patch)
tree119100a42b518e0c6f11f8b19d8774c9e09bd47d /common
parent6237ca87ca707bb69a267eb0f1182ba03683addf (diff)
downloadxrdp-proprietary-c709446abdb9d901a278b72f5863660f13005f5e.tar.gz
xrdp-proprietary-c709446abdb9d901a278b72f5863660f13005f5e.zip
add SPLITCOLOR32
Diffstat (limited to 'common')
-rw-r--r--common/defines.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/defines.h b/common/defines.h
index 8dfba96b..cae15fc7 100644
--- a/common/defines.h
+++ b/common/defines.h
@@ -63,6 +63,12 @@
#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 SPLITCOLOR32(r, g, b, c) \
+{ \
+ r = (c >> 16) & 0xff; \
+ g = (c >> 8) & 0xff; \
+ b = c & 0xff; \
+}
/* font macros */
#define FONT_DATASIZE(f) ((((f)->height * (((f)->width + 7) / 8)) + 3) & ~3);
/* use crc for bitmap cache lookups */