From d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 10 Nov 2006 19:24:14 +0000 Subject: (svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1) --- industry_gui.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'industry_gui.c') diff --git a/industry_gui.c b/industry_gui.c index 9a650e6ae..445422a4a 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -188,7 +188,7 @@ static const Widget _build_industry_land3_widgets_extra[] = { static const WindowDesc _build_industry_land0_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land0_widgets, @@ -196,7 +196,7 @@ static const WindowDesc _build_industry_land0_desc = { }; static const WindowDesc _build_industry_land1_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land1_widgets, @@ -204,7 +204,7 @@ static const WindowDesc _build_industry_land1_desc = { }; static const WindowDesc _build_industry_land2_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land2_widgets, @@ -212,7 +212,7 @@ static const WindowDesc _build_industry_land2_desc = { }; static const WindowDesc _build_industry_land3_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land3_widgets, @@ -220,7 +220,7 @@ static const WindowDesc _build_industry_land3_desc = { }; static const WindowDesc _build_industry_land0_desc_extra = { - -1, -1, 170, 188, + WDP_AUTO, WDP_AUTO, 170, 188, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land0_widgets_extra, @@ -228,7 +228,7 @@ static const WindowDesc _build_industry_land0_desc_extra = { }; static const WindowDesc _build_industry_land1_desc_extra = { - -1, -1, 170, 175, + WDP_AUTO, WDP_AUTO, 170, 175, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land1_widgets_extra, @@ -236,7 +236,7 @@ static const WindowDesc _build_industry_land1_desc_extra = { }; static const WindowDesc _build_industry_land2_desc_extra = { - -1, -1, 170, 201, + WDP_AUTO, WDP_AUTO, 170, 201, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land2_widgets_extra, @@ -244,7 +244,7 @@ static const WindowDesc _build_industry_land2_desc_extra = { }; static const WindowDesc _build_industry_land3_desc_extra = { - -1, -1, 170, 188, + WDP_AUTO, WDP_AUTO, 170, 188, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land3_widgets_extra, @@ -434,7 +434,7 @@ static const Widget _industry_view_widgets[] = { }; static const WindowDesc _industry_view_desc = { - -1, -1, 260, 160, + WDP_AUTO, WDP_AUTO, 260, 160, WC_INDUSTRY_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _industry_view_widgets, @@ -676,7 +676,7 @@ static void IndustryDirectoryWndProc(Window *w, WindowEvent *e) /* Industry List */ static const WindowDesc _industry_directory_desc = { - -1, -1, 508, 190, + WDP_AUTO, WDP_AUTO, 508, 190, WC_INDUSTRY_DIRECTORY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _industry_directory_widgets, -- cgit v1.2.3-70-g09d2