diff --git a/.gitignore b/.gitignore
index e75df8b8b6..8711a2759b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -290,3 +290,4 @@ nt/emacs.rc
nt/emacsclient.rc
src/gdb.ini
/var/
+build/
diff --git a/src/fringe.c b/src/fringe.c
index d0d599223d..82f2ad5d55 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -1774,16 +1774,19 @@ w32_init_fringe (struct redisplay_interface *rif)
x_cr_init_fringe (struct redisplay_interface *rif)
#endif
{
- int bt;
-
if (!rif)
return;
+ int bt;
+ struct fringe_bitmap *fb;
+
for (bt = NO_FRINGE_BITMAP + 1; bt < MAX_STANDARD_FRINGE_BITMAPS; bt++)
{
- struct fringe_bitmap *fb = &standard_bitmaps[bt];
+ fb = &standard_bitmaps[bt];
rif->define_fringe_bitmap (bt, fb->bits, fb->height, fb->width);
}
+ while ((fb = fringe_bitmaps[bt]))
+ rif->define_fringe_bitmap (bt++, fb->bits, fb->height, fb->width);
}
#endif