mirror of https://github.com/OpenTTD/OpenTTD
(svn r20509) -Change: don't cycle (quickly) through the shade states. Just make scrolling up shade the window and scrolling down unshade it. (avdg)
parent
71ff3c4bb4
commit
12b8822277
|
@ -446,7 +446,7 @@ static void DispatchMouseWheelEvent(Window *w, const NWidgetCore *nwid, int whee
|
||||||
|
|
||||||
/* Using wheel on caption/shade-box shades or unshades the window. */
|
/* Using wheel on caption/shade-box shades or unshades the window. */
|
||||||
if (nwid->type == WWT_CAPTION || nwid->type == WWT_SHADEBOX) {
|
if (nwid->type == WWT_CAPTION || nwid->type == WWT_SHADEBOX) {
|
||||||
w->SetShaded(!w->IsShaded());
|
w->SetShaded(wheel < 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue