summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-15 23:42:36 +0000
committerrubidium <rubidium@openttd.org>2010-08-15 23:42:36 +0000
commit12b882227717811b047d4ae84d95444b167d7226 (patch)
treee4a8ee82b51d7750b412d4c66a0e38d820e992e8 /src
parent71ff3c4bb42a41422a628598abed68f7d94cb1df (diff)
downloadopenttd-12b882227717811b047d4ae84d95444b167d7226.tar.xz
(svn r20509) -Change: don't cycle (quickly) through the shade states. Just make scrolling up shade the window and scrolling down unshade it. (avdg)
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 61ef20bef..fd6ce0900 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -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;
}