aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2005-04-18 14:09:32 +0000
committerKim F. Storm2005-04-18 14:09:32 +0000
commita8b34fae0031b8280203f39e49691984b510258b (patch)
tree439d7b9c12e4a0d80f120a41de78ff60b08bba39 /src
parent3d4a365f6184f70e95cefc599711ef8226328639 (diff)
downloademacs-a8b34fae0031b8280203f39e49691984b510258b.tar.gz
emacs-a8b34fae0031b8280203f39e49691984b510258b.zip
(draw_fringe_bitmap): Use overlay_arrow_bitmap from row
rather than from window. (update_window_fringes): Compare overlay_arrow_bitmap rather than overlay_arrow_p members. (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name if not default.
Diffstat (limited to 'src')
-rw-r--r--src/fringe.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/fringe.c b/src/fringe.c
index f375159c8bc..08c034bbe82 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -699,11 +699,11 @@ draw_fringe_bitmap (w, row, left_p)
699 699
700 draw_fringe_bitmap_1 (w, row, left_p, overlay, NO_FRINGE_BITMAP); 700 draw_fringe_bitmap_1 (w, row, left_p, overlay, NO_FRINGE_BITMAP);
701 701
702 if (left_p && row->overlay_arrow_p) 702 if (left_p && row->overlay_arrow_bitmap != NO_FRINGE_BITMAP)
703 draw_fringe_bitmap_1 (w, row, 1, 1, 703 draw_fringe_bitmap_1 (w, row, 1, 1,
704 (w->overlay_arrow_bitmap 704 (row->overlay_arrow_bitmap < 0
705 ? w->overlay_arrow_bitmap 705 ? OVERLAY_ARROW_BITMAP
706 : OVERLAY_ARROW_BITMAP)); 706 : row->overlay_arrow_bitmap));
707} 707}
708 708
709 709
@@ -959,10 +959,10 @@ update_window_fringes (w, force_p)
959 cur->right_fringe_face_id = right_face_id; 959 cur->right_fringe_face_id = right_face_id;
960 } 960 }
961 961
962 if (row->overlay_arrow_p != cur->overlay_arrow_p) 962 if (row->overlay_arrow_bitmap != cur->overlay_arrow_bitmap)
963 { 963 {
964 redraw_p = row->redraw_fringe_bitmaps_p = cur->redraw_fringe_bitmaps_p = 1; 964 redraw_p = row->redraw_fringe_bitmaps_p = cur->redraw_fringe_bitmaps_p = 1;
965 cur->overlay_arrow_p = row->overlay_arrow_p; 965 cur->overlay_arrow_bitmap = row->overlay_arrow_bitmap;
966 } 966 }
967 967
968 row->left_fringe_bitmap = left; 968 row->left_fringe_bitmap = left;
@@ -1408,7 +1408,9 @@ Return nil if POS is not visible in WINDOW. */)
1408 if (row) 1408 if (row)
1409 return list3 (get_fringe_bitmap_name (row->left_fringe_bitmap), 1409 return list3 (get_fringe_bitmap_name (row->left_fringe_bitmap),
1410 get_fringe_bitmap_name (row->right_fringe_bitmap), 1410 get_fringe_bitmap_name (row->right_fringe_bitmap),
1411 (row->overlay_arrow_p ? Qt : Qnil)); 1411 (row->overlay_arrow_bitmap == 0 ? Qnil
1412 : row->overlay_arrow_bitmap < 0 ? Qt
1413 : get_fringe_bitmap_name (row->overlay_arrow_bitmap)));
1412 else 1414 else
1413 return Qnil; 1415 return Qnil;
1414} 1416}