Fix support for 32-bpp clients connecting to 16-bpp VNC

This commit is contained in:
Pavel Roskin 2016-12-07 23:59:04 -08:00
parent 42272c0f18
commit a8fcbf8c2d

View File

@ -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 */