Mercurial > emacs
changeset 40329:c1762ce8905b
(XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix clearning in the case of scroll bars on the right.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 26 Oct 2001 11:57:25 +0000 |
parents | f687e0474d22 |
children | a64070429637 |
files | src/xterm.c |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Fri Oct 26 11:54:10 2001 +0000 +++ b/src/xterm.c Fri Oct 26 11:57:25 2001 +0000 @@ -9253,10 +9253,16 @@ { int area_width = FRAME_SCROLL_BAR_COLS (f) * CANON_X_UNIT (f); int rest = area_width - sb_width; - if (rest > 0) - x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), - left + area_width - rest, top, - rest, max (height, 1), False); + if (rest > 0 && height > 0) + { + if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f)) + x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), + left + area_width - rest, top, + rest, height, False); + else + x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), + left, top, rest, height, False); + } } /* Move/size the scroll bar window. */