diff options
author | alberth <alberth@openttd.org> | 2009-10-25 13:33:56 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-10-25 13:33:56 +0000 |
commit | 413f6b880f98375a85c36ffbf9359c8a2d2c052c (patch) | |
tree | f64d9d586c61c0e3bcd53e386ce553a78029cdff /src/group_gui.cpp | |
parent | 699e5165ff0864d7600ae08015057fa6cb20049c (diff) | |
download | openttd-413f6b880f98375a85c36ffbf9359c8a2d2c052c.tar.xz |
(svn r17865) -Codechange: Remove references to specific widgets and step-heights from BaseVehicleListWindow::DrawVehicleListItems().
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index f8810fc18..697c660b1 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -435,7 +435,9 @@ public: this->DrawSortButtonState(GRP_WIDGET_SORT_BY_ORDER, this->vehicles.IsDescSortOrder() ? SBS_DOWN : SBS_UP); - this->DrawVehicleListItems(this->vehicle_sel); + Rect rect = {this->widget[GRP_WIDGET_LIST_VEHICLE].left, this->widget[GRP_WIDGET_LIST_VEHICLE].top, + this->widget[GRP_WIDGET_LIST_VEHICLE].right, this->widget[GRP_WIDGET_LIST_VEHICLE].bottom}; + this->DrawVehicleListItems(this->vehicle_sel, this->resize.step_height, rect); } virtual void OnClick(Point pt, int widget) |