summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_rdp.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-04-07 22:41:46 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-04-07 22:41:46 -0700
commit6333cdd86564f103d1e500e9c2857663d8c68f81 (patch)
tree94bb6c482170ae07f06fb220d986c94021e4ea5e /libxrdp/xrdp_rdp.c
parent8db6dd3f77548df571085bed9416554fab52db30 (diff)
downloadxrdp-proprietary-6333cdd86564f103d1e500e9c2857663d8c68f81.tar.gz
xrdp-proprietary-6333cdd86564f103d1e500e9c2857663d8c68f81.zip
added non standard jpeg support off by default
Diffstat (limited to 'libxrdp/xrdp_rdp.c')
-rw-r--r--libxrdp/xrdp_rdp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index 93e91765..08618610 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -735,7 +735,14 @@ xrdp_process_capset_bmpcache2(struct xrdp_rdp* self, struct stream* s,
self->client_info.bitmap_cache_version = 2;
Bpp = (self->client_info.bpp + 7) / 8;
- in_uint16_le(s, i);
+ in_uint16_le(s, i); /* cache flags */
+#if defined(XRDP_JPEG)
+ if (i & 0x80)
+ {
+ g_writeln("xrdp_process_capset_bmpcache2: client supports jpeg");
+ self->client_info.jpeg = 1;
+ }
+#endif
self->client_info.bitmap_cache_persist_enable = i;
in_uint8s(s, 2); /* number of caches in set, 3 */
in_uint32_le(s, i);