From 415a0a158ec4aab1fa8206bd33fab6c792aa1a67 Mon Sep 17 00:00:00 2001 From: Norbert Federa Date: Thu, 4 Dec 2014 17:52:54 +0100 Subject: [PATCH] xfreerdp: smart sizing fix Standard format PictStandardRGB24 is not always available. Use XRenderFindVisualFormat instead of XRenderFindStandardFormat --- client/X11/xf_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index 5a7ddca13..1c88da092 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -161,7 +161,7 @@ static void xf_draw_screen_scaled(xfContext* xfc, int x, int y, int w, int h) XDestroyRegion(reg2); } - picFormat = XRenderFindStandardFormat(xfc->display, PictStandardRGB24); + picFormat = XRenderFindVisualFormat(xfc->display, xfc->visual); pa.subwindow_mode = IncludeInferiors; primaryPicture = XRenderCreatePicture(xfc->display, xfc->primary, picFormat, CPSubwindowMode, &pa);