summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-07-17 15:06:28 +0000
committerfrosch <frosch@openttd.org>2010-07-17 15:06:28 +0000
commitec4fa160e9c8f96f663515265734255b42bcdd65 (patch)
treeb474aaa28f36599a1c0cb79dbefa8c086bd0b377
parentbe7a5588fab477479d2d9da35d75bd16b048042a (diff)
downloadopenttd-ec4fa160e9c8f96f663515265734255b42bcdd65.tar.xz
(svn r20174) -Codechange [FS#3955]: Allow horizontal resizing for all vehicle lists.
-rw-r--r--src/vehicle_gui.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 3d1e20c71..3650bd9a3 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -863,7 +863,7 @@ static const NWidgetPart _nested_vehicle_list[] = {
EndContainer(),
NWidget(NWID_HORIZONTAL),
- NWidget(WWT_MATRIX, COLOUR_GREY, VLW_WIDGET_LIST), SetMinimalSize(248, 0), SetFill(1, 0),
+ NWidget(WWT_MATRIX, COLOUR_GREY, VLW_WIDGET_LIST), SetMinimalSize(248, 0), SetFill(1, 0), SetResize(1, 1),
NWidget(WWT_SCROLLBAR, COLOUR_GREY, VLW_WIDGET_SCROLLBAR),
EndContainer(),
@@ -1089,13 +1089,10 @@ public:
{
switch (widget) {
case VLW_WIDGET_LIST:
- resize->width = 0;
resize->height = GetVehicleListHeight(this->vehicle_type, 1);
switch (this->vehicle_type) {
case VEH_TRAIN:
- resize->width = 1;
- /* Fallthrough */
case VEH_ROAD:
size->height = 6 * resize->height;
break;