From: Po Lu Date: Thu, 10 Feb 2022 12:00:47 +0000 (+0800) Subject: Enable TrueColor allocation optimizations on all visuals X-Git-Tag: emacs-29.0.90~2390 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15781beda80fffa6c2dca1b5b32da8f0b4b3b306;p=emacs.git Enable TrueColor allocation optimizations on all visuals * src/xterm.c (x_alloc_nearest_color): Enable optimizations on 32-bit TrueColor visuals that legitimately don't have an alpha mask. --- diff --git a/src/xterm.c b/src/xterm.c index 469077c8972..095ed316cfa 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3292,9 +3292,7 @@ x_alloc_nearest_color (struct frame *f, Colormap cmap, XColor *color) gamma_correct (f, color); - if (dpyinfo->red_bits > 0 - && (dpyinfo->n_planes != 32 - || dpyinfo->alpha_bits > 0)) + if (dpyinfo->red_bits > 0) { color->pixel = x_make_truecolor_pixel (dpyinfo, color->red,