summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_orders.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-06-15 16:17:40 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-06-15 16:17:40 -0700
commitaa35a327528c507505de33496dd214c40675fd6e (patch)
tree5af53f65c527b5472608821af2e344d237f6b588 /libxrdp/xrdp_orders.c
parente494f5367f5662940e13cecef9bea21a3850730e (diff)
downloadxrdp-proprietary-aa35a327528c507505de33496dd214c40675fd6e.tar.gz
xrdp-proprietary-aa35a327528c507505de33496dd214c40675fd6e.zip
libxrdp: 32 bpp compression changes / fixes
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r--libxrdp/xrdp_orders.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c
index 7ba6cf01..1412386e 100644
--- a/libxrdp/xrdp_orders.c
+++ b/libxrdp/xrdp_orders.c
@@ -2327,8 +2327,16 @@ xrdp_orders_send_bitmap(struct xrdp_orders *self,
init_stream(temp_s, 16384);
p = s->p;
i = height;
- lines_sending = xrdp_bitmap_compress(data, width, height, s, bpp, 16384,
- i - 1, temp_s, e);
+ if (bpp > 24)
+ {
+ lines_sending = xrdp_bitmap32_compress(data, width, height, s, bpp, 16384,
+ i - 1, temp_s, e);
+ }
+ else
+ {
+ lines_sending = xrdp_bitmap_compress(data, width, height, s, bpp, 16384,
+ i - 1, temp_s, e);
+ }
if (lines_sending != height)
{