summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-12-07 23:59:04 -0800
committerPavel Roskin <plroskin@gmail.com>2016-12-09 08:43:07 -0800
commita8fcbf8c2dc48f0e015093e061c5b7efb63fbdc1 (patch)
treecf801ac81a747be4a132d883fe095cc1f09764db /vnc
parent42272c0f1891264af718e8f0a02ebc883f248ed8 (diff)
downloadxrdp-proprietary-a8fcbf8c2dc48f0e015093e061c5b7efb63fbdc1.tar.gz
xrdp-proprietary-a8fcbf8c2dc48f0e015093e061c5b7efb63fbdc1.zip
Fix support for 32-bpp clients connecting to 16-bpp VNC
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 8fe3a8bc..3a91ea9d 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -1288,7 +1288,7 @@ lib_mod_connect(struct vnc *v)
out_uint8(pixel_format, 0); /* blue shift */
out_uint8s(pixel_format, 3); /* pad */
}
- else if (v->mod_bpp == 24)
+ else if (v->mod_bpp == 24 || v->mod_bpp == 32)
{
out_uint8(pixel_format, 32); /* bits per pixel */
out_uint8(pixel_format, 24); /* depth */