emacs-diffs
[Top][All Lists]
Advanced

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

master e87b07e277: Make treatment of `alpha-background' more consistent


From: Po Lu
Subject: master e87b07e277: Make treatment of `alpha-background' more consistent
Date: Fri, 18 Feb 2022 00:51:25 -0500 (EST)

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

    Make treatment of `alpha-background' more consistent
    
    * src/xterm.c (x_clear_glyph_string_rect):
    (x_draw_glyph_string_background): Ignore alpha_background on all
    cursors.
---
 src/xterm.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 70fa054bcf..930d9cf370 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2549,9 +2549,7 @@ x_compute_glyph_string_overhangs (struct glyph_string *s)
 static void
 x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h)
 {
-  x_clear_rectangle (s->f, s->gc, x, y, w, h,
-                    (s->first_glyph->type != STRETCH_GLYPH
-                     || s->hl != DRAW_CURSOR));
+  x_clear_rectangle (s->f, s->gc, x, y, w, h, s->hl != DRAW_CURSOR);
 }
 
 
@@ -2580,7 +2578,7 @@ x_draw_glyph_string_background (struct glyph_string *s, 
bool force_p)
                            s->y + box_line_width,
                            s->background_width,
                            s->height - 2 * box_line_width,
-                           true);
+                           s->hl != DRAW_CURSOR);
          XSetFillStyle (display, s->gc, FillSolid);
          s->background_filled_p = true;
        }
@@ -4246,7 +4244,7 @@ x_draw_glyph_string_bg_rect (struct glyph_string *s, int 
x, int y, int w, int h)
 
       /* Fill background with a stipple pattern.  */
       XSetFillStyle (display, s->gc, FillOpaqueStippled);
-      x_fill_rectangle (s->f, s->gc, x, y, w, h, false);
+      x_fill_rectangle (s->f, s->gc, x, y, w, h, true);
       XSetFillStyle (display, s->gc, FillSolid);
     }
   else



reply via email to

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