Changeset - r2597:d408743dd486
[Not reviewed]
master
0 1 0
tron - 18 years ago 2005-11-04 14:57:53
tron@openttd.org
(svn r3134) Forgot to commit one file in r3133
1 file changed with 11 insertions and 15 deletions:
widget.c
11
15
0 comments (0 inline, 0 general)
widget.c
Show inline comments
 
@@ -86,26 +86,22 @@ void ScrollbarClickHandler(Window *w, co
 
	}
 
	if (pos <= mi+9) {
 
		// Pressing the upper button?
 
		if (!_demo_mode) {
 
			w->flags4 |= WF_SCROLL_UP;
 
			if (_scroller_click_timeout == 0) {
 
				_scroller_click_timeout = 6;
 
				if (sb->pos != 0) sb->pos--;
 
			}
 
			_left_button_clicked = false;
 
		w->flags4 |= WF_SCROLL_UP;
 
		if (_scroller_click_timeout == 0) {
 
			_scroller_click_timeout = 6;
 
			if (sb->pos != 0) sb->pos--;
 
		}
 
		_left_button_clicked = false;
 
	} else if (pos >= ma-10) {
 
		// Pressing the lower button?
 
		if (!_demo_mode) {
 
			w->flags4 |= WF_SCROLL_DOWN;
 
		w->flags4 |= WF_SCROLL_DOWN;
 

	
 
			if (_scroller_click_timeout == 0) {
 
				_scroller_click_timeout = 6;
 
				if ((byte)(sb->pos + sb->cap) < sb->count)
 
					sb->pos++;
 
			}
 
			_left_button_clicked = false;
 
		if (_scroller_click_timeout == 0) {
 
			_scroller_click_timeout = 6;
 
			if ((byte)(sb->pos + sb->cap) < sb->count)
 
				sb->pos++;
 
		}
 
		_left_button_clicked = false;
 
	} else {
 
		//
 
		Point pt = HandleScrollbarHittest(sb, mi, ma);
0 comments (0 inline, 0 general)