From: Po Lu Date: Wed, 2 Feb 2022 01:17:31 +0000 (+0800) Subject: Don't use XRender to fill rectangles unless an alpha channel exists X-Git-Tag: emacs-29.0.90~2589 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1f0608fd1316b4f9a0fde99293e0c9ee5ef7ea3;p=emacs.git Don't use XRender to fill rectangles unless an alpha channel exists * src/xterm.c (x_clear_area): Don't use XRender unless `alpha_bits' is set. --- diff --git a/src/xterm.c b/src/xterm.c index 843483b594a..68488b3ef55 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4769,7 +4769,8 @@ x_clear_area (struct frame *f, int x, int y, int width, int height) #if defined HAVE_XRENDER && \ (RENDER_MAJOR > 0 || (RENDER_MINOR >= 2)) x_xr_ensure_picture (f); - if (FRAME_X_PICTURE (f) != None + if (FRAME_DISPLAY_INFO (f)->alpha_bits + && FRAME_X_PICTURE (f) != None && FRAME_CHECK_XR_VERSION (f, 0, 2)) { XRenderColor xc;