summaryrefslogtreecommitdiffstats
path: root/uirdesktop/uimain.h
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-08-06 20:22:38 +0000
committerjsorg71 <jsorg71>2006-08-06 20:22:38 +0000
commitf9aa0b9b106f4a839d9bdfad6dcb6b6e6d569d07 (patch)
tree94d0ab6812571b5908904a74ad9648740c9f4cf8 /uirdesktop/uimain.h
parent66cbf378ed7f7ea7a5c58c9fe98c2beaa95f0715 (diff)
downloadxrdp-proprietary-f9aa0b9b106f4a839d9bdfad6dcb6b6e6d569d07.tar.gz
xrdp-proprietary-f9aa0b9b106f4a839d9bdfad6dcb6b6e6d569d07.zip
frame buffer work
Diffstat (limited to 'uirdesktop/uimain.h')
-rwxr-xr-xuirdesktop/uimain.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/uirdesktop/uimain.h b/uirdesktop/uimain.h
index 3b93668d..6c098746 100755
--- a/uirdesktop/uimain.h
+++ b/uirdesktop/uimain.h
@@ -70,6 +70,15 @@ ui_set_modifier_state(int code);
); \
}
+#define MAKE_COLOUR16(c, r, g, b) \
+{ \
+ c = ( \
+ (((r & 0xff) >> 3) << 11) | \
+ (((g & 0xff) >> 2) << 5) | \
+ (((b & 0xff) >> 3) << 0) \
+ ); \
+}
+
#define MAKE_COLOUR32(c, r, g, b) \
{ \
c = ( \