From 6d7e315b0c0a1e56e135614f1e2e96fa19870975 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 18 Mar 2014 00:07:11 -0700 Subject: work on surface command --- libxrdp/xrdp_rdp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libxrdp/xrdp_rdp.c') 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 @@ -507,6 +507,18 @@ xrdp_rdp_send_data(struct xrdp_rdp *self, struct stream *s, return 0; } +/*****************************************************************************/ +/* 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) -- cgit v1.2.3