aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-02-10 20:00:47 +0800
committerPo Lu2022-02-10 20:00:47 +0800
commit15781beda80fffa6c2dca1b5b32da8f0b4b3b306 (patch)
treef57358edc532c920f3399da893f58cafdc280f61
parentd49c8cea4377066e8fd8035d941bf671e51722eb (diff)
downloademacs-15781beda80fffa6c2dca1b5b32da8f0b4b3b306.tar.gz
emacs-15781beda80fffa6c2dca1b5b32da8f0b4b3b306.zip
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.
-rw-r--r--src/xterm.c4
1 files changed, 1 insertions, 3 deletions
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)
3292 3292
3293 gamma_correct (f, color); 3293 gamma_correct (f, color);
3294 3294
3295 if (dpyinfo->red_bits > 0 3295 if (dpyinfo->red_bits > 0)
3296 && (dpyinfo->n_planes != 32
3297 || dpyinfo->alpha_bits > 0))
3298 { 3296 {
3299 color->pixel = x_make_truecolor_pixel (dpyinfo, 3297 color->pixel = x_make_truecolor_pixel (dpyinfo,
3300 color->red, 3298 color->red,