summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-03-21 13:29:26 +0000
committerKim F. Storm <storm@cua.dk>2006-03-21 13:29:26 +0000
commit7dfa5c4928eaf7fec6a718304365ceef0d6e8426 (patch)
tree308bc34c91ea275199f162d60a9c48d6075f0d50 /src
parent8abd887f85c11553f6a146cbc04f5744645f6d3d (diff)
downloademacs-7dfa5c4928eaf7fec6a718304365ceef0d6e8426.tar.gz
(draw_fringe_bitmap): Don't calculate default overlay arrow
bitmap here, but ... (update_window_fringes): ... here, so we can test if it has changed.
Diffstat (limited to 'src')
-rw-r--r--src/fringe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fringe.c b/src/fringe.c
index 3048be2d707..48fb11810ed 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -866,10 +866,7 @@ draw_fringe_bitmap (w, row, left_p)
draw_fringe_bitmap_1 (w, row, left_p, overlay, NO_FRINGE_BITMAP);
if (left_p && row->overlay_arrow_bitmap != NO_FRINGE_BITMAP)
- draw_fringe_bitmap_1 (w, row, 1, 1,
- (row->overlay_arrow_bitmap < 0
- ? get_logical_fringe_bitmap (w, Qoverlay_arrow, 0, 0)
- : row->overlay_arrow_bitmap));
+ draw_fringe_bitmap_1 (w, row, 1, 1, row->overlay_arrow_bitmap);
}
@@ -1151,6 +1148,9 @@ update_window_fringes (w, keep_current_p)
}
}
+ if (row->overlay_arrow_bitmap < 0)
+ row->overlay_arrow_bitmap = get_logical_fringe_bitmap (w, Qoverlay_arrow, 0, 0);
+
if (row->overlay_arrow_bitmap != cur->overlay_arrow_bitmap)
{
redraw_p = row->redraw_fringe_bitmaps_p = cur->redraw_fringe_bitmaps_p = 1;