1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-19 10:22:27 +00:00

* xterm.c (XTset_vertical_scroll_bar): Use double type for

intermediate results in scaling.
This commit is contained in:
Jim Blandy 1993-06-12 17:00:45 +00:00
parent 188d6c4e63
commit 43f868f524

View File

@ -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);
}