diff options
author | frosch <frosch@openttd.org> | 2013-06-30 14:36:31 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-30 14:36:31 +0000 |
commit | 43ec0bf0c118b5228a9c50a2ba1650d021dc5c44 (patch) | |
tree | 5aef49476d90a8b682f809125c8c37d035a1c9fa /src/autoreplace_gui.cpp | |
parent | 8116aeff218fe55c98c0dcd2a62390fe7e7d9c6e (diff) | |
download | openttd-43ec0bf0c118b5228a9c50a2ba1650d021dc5c44.tar.xz |
(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of rows and columns from the resize step size.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 7cfb5844b..b159376a0 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -509,9 +509,6 @@ public: { this->vscroll[0]->SetCapacityFromWidget(this, WID_RV_LEFT_MATRIX); this->vscroll[1]->SetCapacityFromWidget(this, WID_RV_RIGHT_MATRIX); - - this->GetWidget<NWidgetCore>(WID_RV_LEFT_MATRIX)->widget_data = - this->GetWidget<NWidgetCore>(WID_RV_RIGHT_MATRIX)->widget_data = (this->vscroll[0]->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } /** |