Mercurial > emacs
comparison src/xterm.c @ 50326:d63b3eeca844
(xm_scroll_callback): Undo a tiny bit of the previous change.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 28 Mar 2003 14:25:14 +0000 |
parents | d9a401f2769d |
children | f139cd7e1d62 |
comparison
equal
deleted
inserted
replaced
50325:6c974c2bee89 | 50326:d63b3eeca844 |
---|---|
4165 /* Get the slider size. */ | 4165 /* Get the slider size. */ |
4166 BLOCK_INPUT; | 4166 BLOCK_INPUT; |
4167 XtVaGetValues (widget, XmNsliderSize, &slider_size, NULL); | 4167 XtVaGetValues (widget, XmNsliderSize, &slider_size, NULL); |
4168 UNBLOCK_INPUT; | 4168 UNBLOCK_INPUT; |
4169 | 4169 |
4170 whole = XM_SB_MAX; | 4170 whole = XM_SB_MAX - slider_size; |
4171 portion = min (cs->value, whole); | 4171 portion = min (cs->value, whole); |
4172 part = scroll_bar_handle; | 4172 part = scroll_bar_handle; |
4173 bar->dragging = make_number (cs->value); | 4173 bar->dragging = make_number (cs->value); |
4174 } | 4174 } |
4175 break; | 4175 break; |