summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_rdp.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-03-18 00:07:11 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-03-18 00:07:11 -0700
commit6d7e315b0c0a1e56e135614f1e2e96fa19870975 (patch)
tree536a8fe4fd25d7c6b615c4350d09f0a114cea293 /libxrdp/xrdp_rdp.c
parent63032b000daeaaeb1eed75abc1c70066c9e02581 (diff)
downloadxrdp-proprietary-6d7e315b0c0a1e56e135614f1e2e96fa19870975.tar.gz
xrdp-proprietary-6d7e315b0c0a1e56e135614f1e2e96fa19870975.zip
work on surface command
Diffstat (limited to 'libxrdp/xrdp_rdp.c')
-rw-r--r--libxrdp/xrdp_rdp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index 76834591..e6a2f622 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -508,6 +508,18 @@ xrdp_rdp_send_data(struct xrdp_rdp *self, struct stream *s,
}
/*****************************************************************************/
+/* returns the fastpath rdp byte count */
+int APP_CC
+xrdp_rdp_get_fastpath_bytes(struct xrdp_rdp *self)
+{
+ if (self->client_info.rdp_compression)
+ {
+ return 4;
+ }
+ return 3;
+}
+
+/*****************************************************************************/
int APP_CC
xrdp_rdp_init_fastpath(struct xrdp_rdp *self, struct stream *s)
{