summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-24 09:47:02 +0000
committerrubidium <rubidium@openttd.org>2009-10-24 09:47:02 +0000
commit2f41c0411c270388efefb9bfa8dd7ecf1cf5b10b (patch)
treea449e9f822d676407437b8f6ebdc24fc6459ab48 /src/station_gui.cpp
parentd5a3ec1996cb70624395dd642a6ccc410856a18e (diff)
downloadopenttd-2f41c0411c270388efefb9bfa8dd7ecf1cf5b10b.tar.xz
(svn r17850) -Codechange: remove most usage of delta on OnResize
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 1822c92b3..28118103e 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -1051,7 +1051,7 @@ struct StationViewWindow : public Window {
virtual void OnResize(Point delta)
{
- if (delta.x != 0) ResizeButtons(this, SVW_LOCATION, SVW_RENAME);
+ ResizeButtons(this, SVW_LOCATION, SVW_RENAME);
this->vscroll.SetCapacity((this->widget[SVW_WAITING].bottom - this->widget[SVW_WAITING].top + 1) / this->resize.step_height);
}
};