]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (x_xrender_color_from_gc_foreground): Fix omission error.
authorPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 04:58:11 +0000 (12:58 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 04:58:11 +0000 (12:58 +0800)
src/xterm.c

index 80c0654e240802a583381f389c2aa216fa25aa86..e7019a3a7477f4bf9455ff3e582e6c38224c8978 100644 (file)
@@ -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;