summaryrefslogtreecommitdiff
path: root/src/w32term.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-09-15 12:28:30 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-09-15 12:28:30 +0400
commit0eed03550425dd3e3689a7fa4d0f1a95b2e48254 (patch)
tree3b213afa4487a1cd9a6813fa471fb6f64f0e928f /src/w32term.c
parent7f09455e5807f0a2b14a313762f6b547490265d1 (diff)
downloademacs-0eed03550425dd3e3689a7fa4d0f1a95b2e48254.tar.gz
Drop VERTICAL_SCROLL_BAR_WIDTH_TRIM. For X, it is zero since 1999,
and it is always zero for others, so I assume that this is an ancient leftover which nobody will want to change any more. * xterm.h, w32term.h, nsterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Remove. (VERTICAL_SCROLL_BAR_INSIDE_WIDTH): * frame.c (x_set_scroll_bar_width): * w32fns.c (w32_createscrollbar): * w32term.c (w32_set_vertical_scroll_bar): * xfns.c (x_set_scroll_bar_default_width): * xterm.c (XTflash, x_scroll_bar_create, XTset_vertical_scroll_bar) (x_scroll_bar_expose): Related users changed.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c
index cb7327b21b7..af73e66d882 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3866,8 +3866,7 @@ w32_set_vertical_scroll_bar (struct window *w,
/* Make sure scroll bar is "visible" before moving, to ensure the
area of the parent window now exposed will be refreshed. */
my_show_window (f, hwnd, SW_HIDE);
- MoveWindow (hwnd, sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
- top, sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
+ MoveWindow (hwnd, sb_left, top, sb_width,
max (height, 1), TRUE);
si.cbSize = sizeof (si);