diff options
author | jsorg71 <jsorg71> | 2008-06-15 09:05:57 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-06-15 09:05:57 +0000 |
commit | 31f19e5cd12972794c522d4d7f1436aa9f9b66c3 (patch) | |
tree | 75ba2cbbbe078c4c7ac8668fa89e8a4d8530d7a1 /rdp/rdp_rdp.c | |
parent | 28d25ba682995f1b2f364d61d0a0f8b5193fe237 (diff) | |
download | xrdp-proprietary-31f19e5cd12972794c522d4d7f1436aa9f9b66c3.tar.gz xrdp-proprietary-31f19e5cd12972794c522d4d7f1436aa9f9b66c3.zip |
added 24 bpp color support
Diffstat (limited to 'rdp/rdp_rdp.c')
-rw-r--r-- | rdp/rdp_rdp.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/rdp/rdp_rdp.c b/rdp/rdp_rdp.c index d6026ba8..db8bb30c 100644 --- a/rdp/rdp_rdp.c +++ b/rdp/rdp_rdp.c @@ -563,7 +563,16 @@ rdp_rdp_process_bitmap_updates(struct rdp_rdp* self, struct stream* s) { for (x = 0; x < width; x++) { - in_uint16_le(s, ((unsigned short*)data)[x]); + in_uint16_le(s, ((tui16*)data)[x]); + } + } + else if (Bpp == 3) + { + for (x = 0; x < width; x++) + { + in_uint8(s, data[x * 3 + 0]); + in_uint8(s, data[x * 3 + 1]); + in_uint8(s, data[x * 3 + 2]); } } } |