mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r3134) Forgot to commit one file in r3133
This commit is contained in:
parent
42f5ec371e
commit
8ae6cea592
4
widget.c
4
widget.c
@ -86,17 +86,14 @@ void ScrollbarClickHandler(Window *w, const Widget *wi, int x, int y)
|
|||||||
}
|
}
|
||||||
if (pos <= mi+9) {
|
if (pos <= mi+9) {
|
||||||
// Pressing the upper button?
|
// Pressing the upper button?
|
||||||
if (!_demo_mode) {
|
|
||||||
w->flags4 |= WF_SCROLL_UP;
|
w->flags4 |= WF_SCROLL_UP;
|
||||||
if (_scroller_click_timeout == 0) {
|
if (_scroller_click_timeout == 0) {
|
||||||
_scroller_click_timeout = 6;
|
_scroller_click_timeout = 6;
|
||||||
if (sb->pos != 0) sb->pos--;
|
if (sb->pos != 0) sb->pos--;
|
||||||
}
|
}
|
||||||
_left_button_clicked = false;
|
_left_button_clicked = false;
|
||||||
}
|
|
||||||
} else if (pos >= ma-10) {
|
} else if (pos >= ma-10) {
|
||||||
// Pressing the lower button?
|
// Pressing the lower button?
|
||||||
if (!_demo_mode) {
|
|
||||||
w->flags4 |= WF_SCROLL_DOWN;
|
w->flags4 |= WF_SCROLL_DOWN;
|
||||||
|
|
||||||
if (_scroller_click_timeout == 0) {
|
if (_scroller_click_timeout == 0) {
|
||||||
@ -105,7 +102,6 @@ void ScrollbarClickHandler(Window *w, const Widget *wi, int x, int y)
|
|||||||
sb->pos++;
|
sb->pos++;
|
||||||
}
|
}
|
||||||
_left_button_clicked = false;
|
_left_button_clicked = false;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
Point pt = HandleScrollbarHittest(sb, mi, ma);
|
Point pt = HandleScrollbarHittest(sb, mi, ma);
|
||||||
|
Loading…
Reference in New Issue
Block a user