aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-15 22:01:01 +0000
committerGerd Moellmann1999-08-15 22:01:01 +0000
commitfe6f39d99bb4b8cb1784fb4775be4adc551cc6ea (patch)
treec7c7a83ddd77e1c4acf3739eda1e2ce0d7dd1d5d
parent233a4a2c3f36a526e564017a80ce313ea15903ea (diff)
downloademacs-fe6f39d99bb4b8cb1784fb4775be4adc551cc6ea.tar.gz
emacs-fe6f39d99bb4b8cb1784fb4775be4adc551cc6ea.zip
(XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
Simplify clearing "under" scroll bar.
-rw-r--r--src/xterm.c39
1 files changed, 6 insertions, 33 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 7d166ada160..8d668408312 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7915,39 +7915,12 @@ XTset_vertical_scroll_bar (w, portion, whole, position)
7915 mask |= CWHeight; 7915 mask |= CWHeight;
7916 7916
7917#ifdef USE_TOOLKIT_SCROLL_BARS 7917#ifdef USE_TOOLKIT_SCROLL_BARS
7918 7918
7919 if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f)) 7919 /* Since toolkit scroll bars are smaller than the space reserved
7920 { 7920 for them on the frame, we have to clear "under" them. */
7921 XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 7921 XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
7922 pixel_left + pixel_width - scroll_bar_area_width, 7922 pixel_left, pixel_top,
7923 pixel_top, 7923 pixel_width + 1, pixel_height, False);
7924 (scroll_bar_area_width
7925 - pixel_width
7926 + VERTICAL_SCROLL_BAR_WIDTH_TRIM),
7927 pixel_height, False);
7928 XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
7929 (pixel_left
7930 + pixel_width
7931 - VERTICAL_SCROLL_BAR_WIDTH_TRIM),
7932 pixel_top,
7933 VERTICAL_SCROLL_BAR_WIDTH_TRIM,
7934 pixel_height, False);
7935 }
7936 else
7937 {
7938 XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
7939 pixel_left, pixel_top,
7940 VERTICAL_SCROLL_BAR_WIDTH_TRIM, pixel_height, False);
7941 XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
7942 (pixel_left
7943 + pixel_width
7944 - VERTICAL_SCROLL_BAR_WIDTH_TRIM),
7945 pixel_top,
7946 (scroll_bar_area_width
7947 - pixel_width
7948 + VERTICAL_SCROLL_BAR_WIDTH_TRIM),
7949 pixel_height, False);
7950 }
7951 7924
7952 /* Move/size the scroll bar widget. */ 7925 /* Move/size the scroll bar widget. */
7953 if (mask) 7926 if (mask)