aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-26 11:59:32 +0000
committerGerd Moellmann2001-10-26 11:59:32 +0000
commit38d2af0c9e92820c368d4264fed7ab8ec62251ac (patch)
tree28229cc97a13c9e9608415f5a5e59f682f36eecf /src
parent56f508dd1c1d0304f2601ea7b2eef92969590a63 (diff)
downloademacs-38d2af0c9e92820c368d4264fed7ab8ec62251ac.tar.gz
emacs-38d2af0c9e92820c368d4264fed7ab8ec62251ac.zip
(XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix clearning in the case of scroll bars on the right.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c14
2 files changed, 15 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bd6b5dfe704..dc42d2d7717 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-10-26 Gerd Moellmann <gerd@gnu.org>
2
3 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4 Fix clearing in the case of scroll bars on the right.
5
12001-10-26 Juanma Barranquero <lektu@terra.es> 62001-10-26 Juanma Barranquero <lektu@terra.es>
2 7
3 * w32gui.h (XImage): Add a dummy typedef. 8 * w32gui.h (XImage): Add a dummy typedef.
diff --git a/src/xterm.c b/src/xterm.c
index d23593e3d2a..5e48bbdf9dc 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9253,10 +9253,16 @@ XTset_vertical_scroll_bar (w, portion, whole, position)
9253 { 9253 {
9254 int area_width = FRAME_SCROLL_BAR_COLS (f) * CANON_X_UNIT (f); 9254 int area_width = FRAME_SCROLL_BAR_COLS (f) * CANON_X_UNIT (f);
9255 int rest = area_width - sb_width; 9255 int rest = area_width - sb_width;
9256 if (rest > 0) 9256 if (rest > 0 && height > 0)
9257 x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 9257 {
9258 left + area_width - rest, top, 9258 if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f))
9259 rest, max (height, 1), False); 9259 x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
9260 left + area_width - rest, top,
9261 rest, height, False);
9262 else
9263 x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
9264 left, top, rest, height, False);
9265 }
9260 } 9266 }
9261 9267
9262 /* Move/size the scroll bar window. */ 9268 /* Move/size the scroll bar window. */