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/rail_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/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 37c076f21..61c29e1e1 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1149,7 +1149,6 @@ public: { if (this->vscroll != NULL) { // New stations available. this->vscroll->SetCapacityFromWidget(this, WID_BRAS_NEWST_LIST); - this->GetWidget<NWidgetCore>(WID_BRAS_NEWST_LIST)->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } } @@ -1357,7 +1356,7 @@ static const NWidgetPart _nested_station_builder_widgets[] = { NWidget(NWID_SELECTION, INVALID_COLOUR, WID_BRAS_SHOW_NEWST_ADDITIONS), NWidget(NWID_HORIZONTAL), SetPIP(7, 0, 7), SetPadding(2, 0, 1, 0), NWidget(WWT_MATRIX, COLOUR_GREY, WID_BRAS_NEWST_LIST), SetMinimalSize(122, 71), SetFill(1, 0), - SetMatrixDataTip(1, 5, STR_STATION_BUILD_STATION_CLASS_TOOLTIP), SetScrollbar(WID_BRAS_NEWST_SCROLL), + SetMatrixDataTip(1, 0, STR_STATION_BUILD_STATION_CLASS_TOOLTIP), SetScrollbar(WID_BRAS_NEWST_SCROLL), NWidget(NWID_VSCROLLBAR, COLOUR_GREY, WID_BRAS_NEWST_SCROLL), EndContainer(), EndContainer(), |