diff options
author | alberth <alberth@openttd.org> | 2009-03-29 09:49:11 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-03-29 09:49:11 +0000 |
commit | 9d2738b9c4c917fef1435276f7963c05fad817de (patch) | |
tree | 46a8610446402593770a93a3a51e586061127c7b /src/station_gui.cpp | |
parent | 7a9a5cd139e924b966599e459db2f1fbdbcdf286 (diff) | |
download | openttd-9d2738b9c4c917fef1435276f7963c05fad817de.tar.xz |
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index c85eceb50..a1a37e5c6 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -546,7 +546,7 @@ public: this->SetDirty(); } - virtual void OnResize(Point new_size, Point delta) + virtual void OnResize(Point delta) { this->vscroll.cap += delta.y / 10; } @@ -975,7 +975,7 @@ struct StationViewWindow : public Window { DoCommandP(0, this->window_number, 0, CMD_RENAME_STATION | CMD_MSG(STR_3031_CAN_T_RENAME_STATION), NULL, str); } - virtual void OnResize(Point new_size, Point delta) + virtual void OnResize(Point delta) { if (delta.x != 0) ResizeButtons(this, SVW_LOCATION, SVW_RENAME); this->vscroll.cap += delta.y / (int)this->resize.step_height; @@ -1187,7 +1187,7 @@ struct SelectStationWindow : Window { } } - virtual void OnResize(Point new_size, Point delta) + virtual void OnResize(Point delta) { this->vscroll.cap = (this->widget[JSW_PANEL].bottom - this->widget[JSW_PANEL].top) / 10; } |