From ae8332b83093d7a3f879d87599e207d3dc215f88 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 31 Jan 2022 12:58:11 +0800 Subject: [PATCH] * src/xterm.c (x_xrender_color_from_gc_foreground): Fix omission error. --- src/xterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 80c0654e240..e7019a3a747 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -16365,6 +16365,10 @@ x_xrender_color_from_gc_foreground (struct frame *f, GC gc, XRenderColor *color, xc.pixel = xgcv.foreground; x_query_colors (f, &xc, 1); + color->alpha = (apply_alpha_background + ? 65535 * f->alpha_background + : 65535); + if (color->alpha == 65535) { color->red = xc.red; -- 2.39.5