comparison src/w32term.c @ 35984:0080b799e901

(w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 08 Feb 2001 15:07:23 +0000
parents c2f95853d4c4
children 205727d5d63c
comparison
equal deleted inserted replaced
35983:f1b6a1c12e38 35984:0080b799e901
7329 w32_set_scroll_bar_thumb (bar, portion, position, whole) 7329 w32_set_scroll_bar_thumb (bar, portion, position, whole)
7330 struct scroll_bar *bar; 7330 struct scroll_bar *bar;
7331 int portion, position, whole; 7331 int portion, position, whole;
7332 { 7332 {
7333 Window w = SCROLL_BAR_W32_WINDOW (bar); 7333 Window w = SCROLL_BAR_W32_WINDOW (bar);
7334 int range = VERTICAL_SCROLL_BAR_TOP_RANGE (f, XINT (bar->height)); 7334 double range = VERTICAL_SCROLL_BAR_TOP_RANGE (f, XINT (bar->height));
7335 int sb_page, sb_pos; 7335 int sb_page, sb_pos;
7336 BOOL draggingp = !NILP (bar->dragging) ? TRUE : FALSE; 7336 BOOL draggingp = !NILP (bar->dragging) ? TRUE : FALSE;
7337 7337
7338 if (whole) 7338 if (whole)
7339 { 7339 {