diff options
author | Po Lu <luangruo@yahoo.com> | 2022-02-09 15:01:36 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-02-09 15:04:12 +0800 |
commit | 5627693ce3f6ff7ef928a902bfab59731a63fbd4 (patch) | |
tree | 7da7e30b2b2a209359ed7f9bfc1138f96ef7c965 /src/ftcrfont.c | |
parent | 34772455261fc1508c3623ba549381976dcba258 (diff) | |
download | emacs-5627693ce3f6ff7ef928a902bfab59731a63fbd4.tar.gz |
Explictly specify whether or not to respect alpha-background on Cairo
* src/ftcrfont.c (ftcrfont_draw): Don't respect
`alpha-background' if drawing cursor. (bug#53890)
* src/xterm.c (x_set_cr_source_with_gc_foreground):
(x_set_cr_source_with_gc_background): New parameters
`respect_alpha_background'. All callers changed.
* src/xterm.h: Update protoypes.
Diffstat (limited to 'src/ftcrfont.c')
-rw-r--r-- | src/ftcrfont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ftcrfont.c b/src/ftcrfont.c index a0a3490c494..4d1ecee3788 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c @@ -566,7 +566,7 @@ ftcrfont_draw (struct glyph_string *s, { #ifndef USE_BE_CAIRO #ifdef HAVE_X_WINDOWS - x_set_cr_source_with_gc_background (f, s->gc); + x_set_cr_source_with_gc_background (f, s->gc, s->hl != DRAW_CURSOR); #else pgtk_set_cr_source_with_color (f, s->xgcv.background, true); #endif @@ -595,7 +595,7 @@ ftcrfont_draw (struct glyph_string *s, } #ifndef USE_BE_CAIRO #ifdef HAVE_X_WINDOWS - x_set_cr_source_with_gc_foreground (f, s->gc); + x_set_cr_source_with_gc_foreground (f, s->gc, false); #else pgtk_set_cr_source_with_color (f, s->xgcv.foreground, false); #endif |