summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_orders.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-06-17 22:41:10 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-06-17 22:41:10 -0700
commitb142a59e69ee2b4a721641fe7f5dc9dadb2bb020 (patch)
tree6d62c919179210025317e6abc65ca465d4d93f52 /libxrdp/xrdp_orders.c
parentca6bec36e6db708cc58e3d17fe2e864fe62b608a (diff)
downloadxrdp-proprietary-b142a59e69ee2b4a721641fe7f5dc9dadb2bb020.tar.gz
xrdp-proprietary-b142a59e69ee2b4a721641fe7f5dc9dadb2bb020.zip
libxrdp: changes for planar compression
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r--libxrdp/xrdp_orders.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c
index 1412386e..88ffda8e 100644
--- a/libxrdp/xrdp_orders.c
+++ b/libxrdp/xrdp_orders.c
@@ -2322,15 +2322,16 @@ xrdp_orders_send_bitmap(struct xrdp_orders *self,
}
make_stream(s);
- init_stream(s, 16384);
+ init_stream(s, 16384 * 2);
make_stream(temp_s);
- init_stream(temp_s, 16384);
+ init_stream(temp_s, 16384 * 2);
p = s->p;
i = height;
if (bpp > 24)
{
- lines_sending = xrdp_bitmap32_compress(data, width, height, s, bpp, 16384,
- i - 1, temp_s, e);
+ lines_sending = xrdp_bitmap32_compress(data, width, height, s,
+ bpp, 16384,
+ i - 1, temp_s, e, 0x30);
}
else
{
@@ -2590,15 +2591,16 @@ xrdp_orders_send_bitmap2(struct xrdp_orders *self,
}
make_stream(s);
- init_stream(s, 16384);
+ init_stream(s, 16384 * 2);
make_stream(temp_s);
- init_stream(temp_s, 16384);
+ init_stream(temp_s, 16384 * 2);
p = s->p;
i = height;
if (bpp > 24)
{
- lines_sending = xrdp_bitmap32_compress(data, width, height, s, bpp, 16384,
- i - 1, temp_s, e);
+ lines_sending = xrdp_bitmap32_compress(data, width, height, s,
+ bpp, 16384,
+ i - 1, temp_s, e, 0x30);
}
else
{