diff options
author | rubidium <rubidium@openttd.org> | 2009-11-17 19:16:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-17 19:16:48 +0000 |
commit | 5f2ddfbc5aa2674124e7af62d405a4d76cdfb0e2 (patch) | |
tree | 555dcdb99e5bae8aea6350713c53469486f925c7 /src/vehicle_gui.cpp | |
parent | 063e8adcecff0818dfb64f7640b11a1b7b982d08 (diff) | |
download | openttd-5f2ddfbc5aa2674124e7af62d405a4d76cdfb0e2.tar.xz |
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 9bb6d5fb6..861dd7b68 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -450,7 +450,7 @@ static const NWidgetPart _nested_vehicle_refit_widgets[] = { }; static const WindowDesc _vehicle_refit_desc( - WDP_AUTO, WDP_AUTO, 240, 174, 240, 174, + WDP_AUTO, WDP_AUTO, 240, 174, WC_VEHICLE_REFIT, WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE | WDF_CONSTRUCTION, _nested_vehicle_refit_widgets, lengthof(_nested_vehicle_refit_widgets) @@ -1195,7 +1195,7 @@ public: }; static WindowDesc _vehicle_list_desc( - WDP_AUTO, WDP_AUTO, 260, 194, 260, 246, + WDP_AUTO, WDP_AUTO, 260, 246, WC_INVALID, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _nested_vehicle_list, lengthof(_nested_vehicle_list) @@ -1614,7 +1614,7 @@ struct VehicleDetailsWindow : Window { /** Vehicle details window descriptor. */ static const WindowDesc _train_vehicle_details_desc( - WDP_AUTO, WDP_AUTO, 405, 113, 405, 178, + WDP_AUTO, WDP_AUTO, 405, 178, WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _nested_train_vehicle_details_widgets, lengthof(_nested_train_vehicle_details_widgets) @@ -1622,7 +1622,7 @@ static const WindowDesc _train_vehicle_details_desc( /** Vehicle details window descriptor for other vehicles than a train. */ static const WindowDesc _nontrain_vehicle_details_desc( - WDP_AUTO, WDP_AUTO, 405, 113, 405, 113, + WDP_AUTO, WDP_AUTO, 405, 113, WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _nested_nontrain_vehicle_details_widgets, lengthof(_nested_nontrain_vehicle_details_widgets) @@ -1679,7 +1679,7 @@ static const NWidgetPart _nested_vehicle_view_widgets[] = { /** Vehicle view window descriptor for all vehicles but trains. */ static const WindowDesc _vehicle_view_desc( - WDP_AUTO, WDP_AUTO, 250, 116, 250, 116, + WDP_AUTO, WDP_AUTO, 250, 116, WC_VEHICLE_VIEW, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _nested_vehicle_view_widgets, lengthof(_nested_vehicle_view_widgets) @@ -1689,7 +1689,7 @@ static const WindowDesc _vehicle_view_desc( * default_height are different for train view. */ static const WindowDesc _train_view_desc( - WDP_AUTO, WDP_AUTO, 250, 134, 250, 134, + WDP_AUTO, WDP_AUTO, 250, 134, WC_VEHICLE_VIEW, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _nested_vehicle_view_widgets, lengthof(_nested_vehicle_view_widgets) |