xfreerdp: smart sizing fix
Standard format PictStandardRGB24 is not always available. Use XRenderFindVisualFormat instead of XRenderFindStandardFormat
This commit is contained in:
parent
161683383e
commit
415a0a158e
@ -161,7 +161,7 @@ static void xf_draw_screen_scaled(xfContext* xfc, int x, int y, int w, int h)
|
|||||||
XDestroyRegion(reg2);
|
XDestroyRegion(reg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
picFormat = XRenderFindStandardFormat(xfc->display, PictStandardRGB24);
|
picFormat = XRenderFindVisualFormat(xfc->display, xfc->visual);
|
||||||
|
|
||||||
pa.subwindow_mode = IncludeInferiors;
|
pa.subwindow_mode = IncludeInferiors;
|
||||||
primaryPicture = XRenderCreatePicture(xfc->display, xfc->primary, picFormat, CPSubwindowMode, &pa);
|
primaryPicture = XRenderCreatePicture(xfc->display, xfc->primary, picFormat, CPSubwindowMode, &pa);
|
||||||
|
Loading…
Reference in New Issue
Block a user