diff options
author | jsorg71 <jsorg71> | 2006-08-06 20:22:38 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-08-06 20:22:38 +0000 |
commit | f9aa0b9b106f4a839d9bdfad6dcb6b6e6d569d07 (patch) | |
tree | 94d0ab6812571b5908904a74ad9648740c9f4cf8 /uirdesktop/uimain.h | |
parent | 66cbf378ed7f7ea7a5c58c9fe98c2beaa95f0715 (diff) | |
download | xrdp-proprietary-f9aa0b9b106f4a839d9bdfad6dcb6b6e6d569d07.tar.gz xrdp-proprietary-f9aa0b9b106f4a839d9bdfad6dcb6b6e6d569d07.zip |
frame buffer work
Diffstat (limited to 'uirdesktop/uimain.h')
-rwxr-xr-x | uirdesktop/uimain.h | 9 |
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 = ( \ |