changeset 69616:c00e99faf809

(draw_fringe_bitmap): Don't calculate default overlay arrow bitmap here, but ... (update_window_fringes): ... here, so we can test if it has changed.
author Kim F. Storm <storm@cua.dk>
date Tue, 21 Mar 2006 13:29:26 +0000
parents 0020503da3e0
children 04a1dd9137ea
files src/fringe.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/fringe.c	Tue Mar 21 10:50:23 2006 +0000
+++ b/src/fringe.c	Tue Mar 21 13:29:26 2006 +0000
@@ -866,10 +866,7 @@
   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 @@
 	    }
 	}
 
+      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;