xfreerdp: smart sizing fix

Standard format PictStandardRGB24 is not always available.
Use XRenderFindVisualFormat instead of XRenderFindStandardFormat
This commit is contained in:
Norbert Federa 2014-12-04 17:52:54 +01:00
parent 161683383e
commit 415a0a158e
1 changed files with 1 additions and 1 deletions

View File

@ -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);