diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index a9a10297bef..b5f87c46cc6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2135,8 +2135,8 @@ XTset_vertical_scroll_bar (window, portion, whole, position) x_scroll_bar_set_handle (bar, 0, top_range, 0); else { - int start = (position * top_range) / whole; - int end = ((position + portion) * top_range) / whole; + int start = ((double) position * top_range) / whole; + int end = ((double) (position + portion) * top_range) / whole; x_scroll_bar_set_handle (bar, start, end, 0); } |