File xrdp-Fix-support-for-32-bpp-clients-connecting-to-16-bpp-.patch of Package xrdp

diff -aur xrdp-0.9.0~git.1456906198.f422461-orig/vnc/vnc.c xrdp-0.9.0~git.1456906198.f422461/vnc/vnc.c
--- xrdp-0.9.0~git.1456906198.f422461-orig/vnc/vnc.c	2017-02-01 13:01:15.000000000 +0100
+++ xrdp-0.9.0~git.1456906198.f422461/vnc/vnc.c	2017-02-01 13:01:30.000000000 +0100
@@ -1214,7 +1214,7 @@
             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 */
Only in xrdp-0.9.0~git.1456906198.f422461/vnc: vnc.c.orig
openSUSE Build Service is sponsored by