aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgtkterm.c
diff options
context:
space:
mode:
authorPo Lu2024-07-09 14:10:07 +0800
committerPo Lu2024-07-09 14:10:07 +0800
commit671ad83026e0f9727a809311d43fd7a57403b33b (patch)
tree8e0799588435bbdc339b256c9b0004218aaaf997 /src/pgtkterm.c
parent15c591bad6282824adf33fa195733da416d3fef2 (diff)
downloademacs-671ad83026e0f9727a809311d43fd7a57403b33b.tar.gz
emacs-671ad83026e0f9727a809311d43fd7a57403b33b.zip
Fix bug#70697 with respect to fringe bitmaps
* src/pgtkterm.c (pgtk_draw_fringe_bitmap): Always call `fill_background_by_face' for clearing backgrounds of fringe bitmaps. (bug#70697)
Diffstat (limited to 'src/pgtkterm.c')
-rw-r--r--src/pgtkterm.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 49b7ea406f8..839bfdce988 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -3594,20 +3594,7 @@ pgtk_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
3594 pgtk_clip_to_row (w, row, ANY_AREA, cr); 3594 pgtk_clip_to_row (w, row, ANY_AREA, cr);
3595 3595
3596 if (p->bx >= 0 && !p->overlay_p) 3596 if (p->bx >= 0 && !p->overlay_p)
3597 { 3597 fill_background_by_face (f, face, p->bx, p->by, p->nx, p->ny);
3598 /* In case the same realized face is used for fringes and for
3599 something displayed in the text (e.g. face `region' on
3600 mono-displays, the fill style may have been changed to
3601 FillSolid in pgtk_draw_glyph_string_background. */
3602 if (face->stipple)
3603 fill_background_by_face (f, face, p->bx, p->by, p->nx, p->ny);
3604 else
3605 {
3606 pgtk_set_cr_source_with_color (f, face->background, true);
3607 cairo_rectangle (cr, p->bx, p->by, p->nx, p->ny);
3608 cairo_fill (cr);
3609 }
3610 }
3611 3598
3612 if (p->which 3599 if (p->which
3613 && p->which < max_fringe_bmp 3600 && p->which < max_fringe_bmp