emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ae8332b830: * src/xterm.c (x_xrender_color_from_gc_foreground): F


From: Po Lu
Subject: master ae8332b830: * src/xterm.c (x_xrender_color_from_gc_foreground): Fix omission error.
Date: Sun, 30 Jan 2022 23:58:56 -0500 (EST)

branch: master
commit ae8332b83093d7a3f879d87599e207d3dc215f88
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * 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 80c0654e24..e7019a3a74 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]