[vlc-devel] [PATCH] Support for newest freerdp snapshot

Paweł Stankowski aambitny at gmail.com
Wed Nov 19 02:03:08 CET 2014


Support for 24bpp was removed from freerdp repository in commit
02c1bf14ce1f3ad2199a349066548977916d9c06.

diff --git a/modules/access/rdp.c b/modules/access/rdp.c
index c48ae99..1dca8ae 100644
--- a/modules/access/rdp.c
+++ b/modules/access/rdp.c
@@ -248,7 +248,13 @@ static bool postConnectHandler( freerdp *p_instance )
     p_instance->update->BeginPaint = beginPaintHandler;
     p_instance->update->EndPaint = endPaintHandler;

-    gdi_init( p_instance, CLRBUF_16BPP | CLRBUF_24BPP | CLRBUF_32BPP, NULL );
+    gdi_init( p_instance,
+                CLRBUF_16BPP |
+#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && \
+    !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 &&
FREERDP_VERSION_MINOR >= 2))
+                CLRBUF_24BPP |
+#endif
+                CLRBUF_32BPP, NULL );

     desktopResizeHandler( p_instance->context );
     return true;



More information about the vlc-devel mailing list