(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets

This commit is contained in:
rubidium
2009-11-17 19:16:48 +00:00
parent 05a6b7bfeb
commit 8e11cd3a42
47 changed files with 139 additions and 143 deletions

View File

@@ -457,7 +457,7 @@ struct CompanyFinancesWindow : Window {
};
static const WindowDesc _company_finances_desc(
WDP_AUTO, WDP_AUTO, 0, 0, 0, 0,
WDP_AUTO, WDP_AUTO, 0, 0,
WC_FINANCES, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
_nested_company_finances_widgets, lengthof(_nested_company_finances_widgets)
@@ -797,7 +797,7 @@ static const NWidgetPart _nested_select_company_livery_widgets [] = {
};
static const WindowDesc _select_company_livery_desc(
WDP_AUTO, WDP_AUTO, 0, 0, 0, 0,
WDP_AUTO, WDP_AUTO, 0, 0,
WC_COMPANY_COLOUR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_select_company_livery_widgets, lengthof(_nested_select_company_livery_widgets)
@@ -1378,7 +1378,7 @@ public:
/** normal/simple company manager face selection window description */
static const WindowDesc _select_company_manager_face_desc(
WDP_AUTO, WDP_AUTO, 190, 163, 190, 163,
WDP_AUTO, WDP_AUTO, 190, 163,
WC_COMPANY_MANAGER_FACE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_select_company_manager_face_widgets, lengthof(_nested_select_company_manager_face_widgets)
@@ -1386,7 +1386,7 @@ static const WindowDesc _select_company_manager_face_desc(
/** advanced company manager face selection window description */
static const WindowDesc _select_company_manager_face_adv_desc(
WDP_AUTO, WDP_AUTO, 220, 220, 220, 220,
WDP_AUTO, WDP_AUTO, 220, 220,
WC_COMPANY_MANAGER_FACE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_select_company_manager_face_adv_widgets, lengthof(_nested_select_company_manager_face_adv_widgets)
@@ -1815,7 +1815,7 @@ struct CompanyWindow : Window
};
static const WindowDesc _company_desc(
WDP_AUTO, WDP_AUTO, 360, 170, 360, 170,
WDP_AUTO, WDP_AUTO, 360, 170,
WC_COMPANY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
_nested_company_widgets, lengthof(_nested_company_widgets)
@@ -1927,7 +1927,7 @@ static const NWidgetPart _nested_buy_company_widgets[] = {
};
static const WindowDesc _buy_company_desc(
153, 171, 334, 137, 334, 137,
153, 171, 334, 137,
WC_BUY_COMPANY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)