diff options
| author | Po Lu | 2022-02-18 13:47:56 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-18 13:51:15 +0800 |
| commit | e87b07e277a6fe7fc0cca7fa49e68e0d2dcce024 (patch) | |
| tree | 6880565846aad67883e9f94fc5592c72ce68784f /src | |
| parent | 86ebc88cd8e54c6013c458c513cd21510942d133 (diff) | |
| download | emacs-e87b07e277a6fe7fc0cca7fa49e68e0d2dcce024.tar.gz emacs-e87b07e277a6fe7fc0cca7fa49e68e0d2dcce024.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index 70fa054bcfd..930d9cf370c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2549,9 +2549,7 @@ x_compute_glyph_string_overhangs (struct glyph_string *s) | |||
| 2549 | static void | 2549 | static void |
| 2550 | x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h) | 2550 | x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h) |
| 2551 | { | 2551 | { |
| 2552 | x_clear_rectangle (s->f, s->gc, x, y, w, h, | 2552 | x_clear_rectangle (s->f, s->gc, x, y, w, h, s->hl != DRAW_CURSOR); |
| 2553 | (s->first_glyph->type != STRETCH_GLYPH | ||
| 2554 | || s->hl != DRAW_CURSOR)); | ||
| 2555 | } | 2553 | } |
| 2556 | 2554 | ||
| 2557 | 2555 | ||
| @@ -2580,7 +2578,7 @@ x_draw_glyph_string_background (struct glyph_string *s, bool force_p) | |||
| 2580 | s->y + box_line_width, | 2578 | s->y + box_line_width, |
| 2581 | s->background_width, | 2579 | s->background_width, |
| 2582 | s->height - 2 * box_line_width, | 2580 | s->height - 2 * box_line_width, |
| 2583 | true); | 2581 | s->hl != DRAW_CURSOR); |
| 2584 | XSetFillStyle (display, s->gc, FillSolid); | 2582 | XSetFillStyle (display, s->gc, FillSolid); |
| 2585 | s->background_filled_p = true; | 2583 | s->background_filled_p = true; |
| 2586 | } | 2584 | } |
| @@ -4246,7 +4244,7 @@ x_draw_glyph_string_bg_rect (struct glyph_string *s, int x, int y, int w, int h) | |||
| 4246 | 4244 | ||
| 4247 | /* Fill background with a stipple pattern. */ | 4245 | /* Fill background with a stipple pattern. */ |
| 4248 | XSetFillStyle (display, s->gc, FillOpaqueStippled); | 4246 | XSetFillStyle (display, s->gc, FillOpaqueStippled); |
| 4249 | x_fill_rectangle (s->f, s->gc, x, y, w, h, false); | 4247 | x_fill_rectangle (s->f, s->gc, x, y, w, h, true); |
| 4250 | XSetFillStyle (display, s->gc, FillSolid); | 4248 | XSetFillStyle (display, s->gc, FillSolid); |
| 4251 | } | 4249 | } |
| 4252 | else | 4250 | else |