aboutsummaryrefslogtreecommitdiffstats
path: root/src/fringe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fringe.c')
-rw-r--r--src/fringe.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/fringe.c b/src/fringe.c
index d42d6467f31..ce75df766ee 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -913,7 +913,12 @@ update_window_fringes (struct window *w, int keep_current_p)
913 int bitmap_cache[MAX_BITMAP_CACHE]; 913 int bitmap_cache[MAX_BITMAP_CACHE];
914 int top_ind_rn, bot_ind_rn; 914 int top_ind_rn, bot_ind_rn;
915 int top_ind_min_y, bot_ind_max_y; 915 int top_ind_min_y, bot_ind_max_y;
916 int top_row_ends_at_zv_p, bot_row_ends_at_zv_p; 916
917 /* top_ind_rn is set to a nonnegative value whenver
918 row->indicate_bob_p is set, so it's OK that top_row_ends_at_zv_p
919 is not initialized here. Similarly for bot_ind_rn,
920 row->indicate_eob_p and bot_row_ends_at_zv_p. */
921 int top_row_ends_at_zv_p IF_LINT (= 0), bot_row_ends_at_zv_p IF_LINT (= 0);
917 922
918 if (w->pseudo_window_p) 923 if (w->pseudo_window_p)
919 return 0; 924 return 0;
@@ -949,18 +954,10 @@ update_window_fringes (struct window *w, int keep_current_p)
949 y < yb && rn < nrows; 954 y < yb && rn < nrows;
950 y += row->height, ++rn) 955 y += row->height, ++rn)
951 { 956 {
952 unsigned indicate_bob_p, indicate_top_line_p;
953 unsigned indicate_eob_p, indicate_bottom_line_p;
954
955 row = w->desired_matrix->rows + rn; 957 row = w->desired_matrix->rows + rn;
956 if (!row->enabled_p) 958 if (!row->enabled_p)
957 row = w->current_matrix->rows + rn; 959 row = w->current_matrix->rows + rn;
958 960
959 indicate_bob_p = row->indicate_bob_p;
960 indicate_top_line_p = row->indicate_top_line_p;
961 indicate_eob_p = row->indicate_eob_p;
962 indicate_bottom_line_p = row->indicate_bottom_line_p;
963
964 row->indicate_bob_p = row->indicate_top_line_p = 0; 961 row->indicate_bob_p = row->indicate_top_line_p = 0;
965 row->indicate_eob_p = row->indicate_bottom_line_p = 0; 962 row->indicate_eob_p = row->indicate_bottom_line_p = 0;
966 963
@@ -1380,7 +1377,7 @@ compute_fringe_widths (struct frame *f, int redraw)
1380 1377
1381/* Free resources used by a user-defined bitmap. */ 1378/* Free resources used by a user-defined bitmap. */
1382 1379
1383void 1380static void
1384destroy_fringe_bitmap (int n) 1381destroy_fringe_bitmap (int n)
1385{ 1382{
1386 struct fringe_bitmap **fbp; 1383 struct fringe_bitmap **fbp;
@@ -1448,7 +1445,7 @@ static const unsigned char swap_nibble[16] = {
1448 0x3, 0xb, 0x7, 0xf}; /* 0011 1011 0111 1111 */ 1445 0x3, 0xb, 0x7, 0xf}; /* 0011 1011 0111 1111 */
1449#endif /* HAVE_X_WINDOWS */ 1446#endif /* HAVE_X_WINDOWS */
1450 1447
1451void 1448static void
1452init_fringe_bitmap (int which, struct fringe_bitmap *fb, int once_p) 1449init_fringe_bitmap (int which, struct fringe_bitmap *fb, int once_p)
1453{ 1450{
1454 if (once_p || fb->dynamic) 1451 if (once_p || fb->dynamic)
@@ -1831,4 +1828,3 @@ w32_reset_fringes (void)
1831#endif /* HAVE_NTGUI */ 1828#endif /* HAVE_NTGUI */
1832 1829
1833#endif /* HAVE_WINDOW_SYSTEM */ 1830#endif /* HAVE_WINDOW_SYSTEM */
1834