From 238e8b6629060a65a801c97f8cbae108f6635427 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 23 May 2015 11:25:20 -0700 Subject: [PATCH] Fix --without-toolkit-scroll-bars builds. * src/xterm.c (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Add new argument to x_clear_area1. (XTset_horizontal_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: Update x_clear_area arguments. --- src/xterm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index c793a5111f7..4f5dfed9ae8 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6401,7 +6401,7 @@ x_scroll_bar_set_handle (struct scroll_bar *bar, int start, int end, x_clear_area1 (FRAME_X_DISPLAY (f), w, VERTICAL_SCROLL_BAR_LEFT_BORDER, VERTICAL_SCROLL_BAR_TOP_BORDER, - inside_width, start); + inside_width, start, False); /* Change to proper foreground color if one is specified. */ if (f->output_data.x->scroll_bar_foreground_pixel != -1) @@ -6426,7 +6426,7 @@ x_scroll_bar_set_handle (struct scroll_bar *bar, int start, int end, x_clear_area1 (FRAME_X_DISPLAY (f), w, VERTICAL_SCROLL_BAR_LEFT_BORDER, VERTICAL_SCROLL_BAR_TOP_BORDER + end, - inside_width, inside_height - end); + inside_width, inside_height - end, False); } unblock_input (); @@ -6660,8 +6660,7 @@ XTset_horizontal_scroll_bar (struct window *w, int portion, int whole, int posit int area_height = WINDOW_CONFIG_SCROLL_BAR_HEIGHT (w); int rest = area_height - height; if (rest > 0 && width > 0) - x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), - left, top, width, rest); + x_clear_area (f, left, top, width, rest); } /* Move/size the scroll bar window. */ -- 2.39.2