diff options
author | rubidium <rubidium@openttd.org> | 2009-10-24 14:53:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-24 14:53:55 +0000 |
commit | ca0521f89fc53be22e18cb56f6d9c358555246af (patch) | |
tree | 709e00edcb606c69ea67ffbf1ba2a115c0bedb70 /src/station_gui.cpp | |
parent | c3992ab7b69461189f217be73136997cd097ee62 (diff) | |
download | openttd-ca0521f89fc53be22e18cb56f6d9c358555246af.tar.xz |
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
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 28118103e..c077cdac1 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -564,7 +564,7 @@ public: this->SetDirty(); } - virtual void OnResize(Point delta) + virtual void OnResize() { this->vscroll.SetCapacity((this->widget[SLW_LIST].bottom - this->widget[SLW_LIST].top + 1) / 10); } @@ -1049,7 +1049,7 @@ struct StationViewWindow : public Window { DoCommandP(0, this->window_number, 0, CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), NULL, str); } - virtual void OnResize(Point delta) + virtual void OnResize() { ResizeButtons(this, SVW_LOCATION, SVW_RENAME); this->vscroll.SetCapacity((this->widget[SVW_WAITING].bottom - this->widget[SVW_WAITING].top + 1) / this->resize.step_height); @@ -1294,7 +1294,7 @@ struct SelectStationWindow : Window { } } - virtual void OnResize(Point delta) + virtual void OnResize() { this->vscroll.SetCapacity((this->GetWidget<NWidgetBase>(JSW_PANEL)->current_y - WD_FRAMERECT_TOP - WD_FRAMERECT_BOTTOM) / this->resize.step_height); } |