1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

Consider all user-defined bitmaps in gui_init_fringe()

* src/fringe.c (gui_init_fringe): Consider user-defined bitmaps
that override default ones (bug#47832).
This commit is contained in:
Gregory Heytings 2021-05-25 06:21:03 +02:00 committed by Lars Ingebrigtsen
parent 0b48e2d258
commit 740d424547

View File

@ -1776,6 +1776,7 @@ gui_init_fringe (struct redisplay_interface *rif)
for (bt = NO_FRINGE_BITMAP + 1; bt < MAX_STANDARD_FRINGE_BITMAPS; bt++)
{
struct fringe_bitmap *fb = &standard_bitmaps[bt];
if (!fringe_bitmaps[bt])
rif->define_fringe_bitmap (bt, fb->bits, fb->height, fb->width);
}
@ -1783,7 +1784,7 @@ gui_init_fringe (struct redisplay_interface *rif)
before the frame of this kind was initialized. This can happen
if Emacs is started as a daemon and the init files define fringe
bitmaps. */
for ( ; bt < max_used_fringe_bitmap; bt++)
for (bt = NO_FRINGE_BITMAP + 1; bt < max_used_fringe_bitmap; bt++)
{
struct fringe_bitmap *fb = fringe_bitmaps[bt];
if (fb)