summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-02-10 00:59:57 -0800
committerPavel Roskin <plroskin@gmail.com>2016-02-10 09:30:23 -0800
commita91a285734b9c6916a5c01a1263b256d4671dcb6 (patch)
tree30751f1423720bcb5e494b417f5749441811a767 /vnc
parenta61349c1d3be866f229495d9b41ad454f0d84296 (diff)
downloadxrdp-proprietary-a91a285734b9c6916a5c01a1263b256d4671dcb6.tar.gz
xrdp-proprietary-a91a285734b9c6916a5c01a1263b256d4671dcb6.zip
vnc: enable 32 bpp support for Xvnc, it actually works
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 2e16ed21..7f747918 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -993,12 +993,18 @@ lib_mod_connect(struct vnc *v)
v->server_msg(v, "VNC started connecting", 0);
check_sec_result = 1;
- /* only support 8 and 16 bpp connections from rdp client */
- if ((v->server_bpp != 8) && (v->server_bpp != 15) &&
- (v->server_bpp != 16) && (v->server_bpp != 24))
- {
- v->server_msg(v, "VNC error - only supporting 8, 15, 16 and 24 bpp rdp "
- "connections", 0);
+ /* check if bpp is supported for rdp connection */
+ switch (v->server_bpp)
+ {
+ case 8:
+ case 15:
+ case 16:
+ case 24:
+ case 32:
+ break;
+ default:
+ v->server_msg(v, "VNC error - only supporting 8, 15, 16, 24 and 32 "
+ "bpp rdp connections", 0);
return 1;
}