diff options
author | Darkvater <Darkvater@openttd.org> | 2006-11-10 19:24:14 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-11-10 19:24:14 +0000 |
commit | e786cd5c6b828293c6860b838a9180b72a22cab7 (patch) | |
tree | c1fc1f90d309d87f532278a729d8ba806cc319fd /industry_gui.c | |
parent | 70eba6d52586db62de3566c7e2c704db50a59bc9 (diff) | |
download | openttd-e786cd5c6b828293c6860b838a9180b72a22cab7.tar.xz |
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
Diffstat (limited to 'industry_gui.c')
-rw-r--r-- | industry_gui.c | 20 |
1 files changed, 10 insertions, 10 deletions
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, |