diff options
| author | Po Lu | 2022-02-11 13:59:03 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-11 13:59:03 +0800 |
| commit | a9d54814b7337c78df8fae69895d1f0554517c43 (patch) | |
| tree | 049e33e1bf9af4dfdc81cbef8231c4dd88ed07d6 /src | |
| parent | 9fdc0f08ce69ae0a41f75b10067c29492472f6a6 (diff) | |
| download | emacs-a9d54814b7337c78df8fae69895d1f0554517c43.tar.gz emacs-a9d54814b7337c78df8fae69895d1f0554517c43.zip | |
Don't make cursors affected by background alpha on PGTK
* src/ftcrfont.c (ftcrfont_draw):
* src/pgtkterm.c (x_clear_glyph_string_rect): Make behavior on
PGTK consistent with X.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftcrfont.c | 3 | ||||
| -rw-r--r-- | src/pgtkterm.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ftcrfont.c b/src/ftcrfont.c index 4d1ecee3788..98a28af5f22 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c | |||
| @@ -568,7 +568,8 @@ ftcrfont_draw (struct glyph_string *s, | |||
| 568 | #ifdef HAVE_X_WINDOWS | 568 | #ifdef HAVE_X_WINDOWS |
| 569 | x_set_cr_source_with_gc_background (f, s->gc, s->hl != DRAW_CURSOR); | 569 | x_set_cr_source_with_gc_background (f, s->gc, s->hl != DRAW_CURSOR); |
| 570 | #else | 570 | #else |
| 571 | pgtk_set_cr_source_with_color (f, s->xgcv.background, true); | 571 | pgtk_set_cr_source_with_color (f, s->xgcv.background, |
| 572 | s->hl != DRAW_CURSOR); | ||
| 572 | #endif | 573 | #endif |
| 573 | #else | 574 | #else |
| 574 | uint32_t col = be_background; | 575 | uint32_t col = be_background; |
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 8faffe94d42..43c475f2a73 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c | |||
| @@ -1197,7 +1197,9 @@ pgtk_compute_glyph_string_overhangs (struct glyph_string *s) | |||
| 1197 | static void | 1197 | static void |
| 1198 | x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h) | 1198 | x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h) |
| 1199 | { | 1199 | { |
| 1200 | pgtk_fill_rectangle (s->f, s->xgcv.background, x, y, w, h, true); | 1200 | pgtk_fill_rectangle (s->f, s->xgcv.background, x, y, w, h, |
| 1201 | (s->first_glyph->type != STRETCH_GLYPH | ||
| 1202 | || s->hl != DRAW_CURSOR)); | ||
| 1201 | } | 1203 | } |
| 1202 | 1204 | ||
| 1203 | 1205 | ||