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) | |||
| 2135 | x_scroll_bar_set_handle (bar, 0, top_range, 0); | 2135 | x_scroll_bar_set_handle (bar, 0, top_range, 0); |
| 2136 | else | 2136 | else |
| 2137 | { | 2137 | { |
| 2138 | int start = (position * top_range) / whole; | 2138 | int start = ((double) position * top_range) / whole; |
| 2139 | int end = ((position + portion) * top_range) / whole; | 2139 | int end = ((double) (position + portion) * top_range) / whole; |
| 2140 | 2140 | ||
| 2141 | x_scroll_bar_set_handle (bar, start, end, 0); | 2141 | x_scroll_bar_set_handle (bar, start, end, 0); |
| 2142 | } | 2142 | } |