mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 09:59:10 +00:00
(svn r20509) -Change: don't cycle (quickly) through the shade states. Just make scrolling up shade the window and scrolling down unshade it. (avdg)
This commit is contained in:
@@ -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. */
|
||||
if (nwid->type == WWT_CAPTION || nwid->type == WWT_SHADEBOX) {
|
||||
w->SetShaded(!w->IsShaded());
|
||||
w->SetShaded(wheel < 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user