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) --- main_gui.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 3815c37a6..ebcd4d03b 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1331,7 +1331,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e) } static const WindowDesc _scen_edit_land_gen_desc = { - -1,-1, 182, 96, + WDP_AUTO, WDP_AUTO, 182, 96, WC_SCEN_LAND_GEN,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _scen_edit_land_gen_widgets, @@ -1447,7 +1447,7 @@ static void ScenEditTownGenWndProc(Window *w, WindowEvent *e) } static const WindowDesc _scen_edit_town_gen_desc = { - -1,-1, 160, 82, + WDP_AUTO, WDP_AUTO, 160, 82, WC_SCEN_TOWN_GEN,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _scen_edit_town_gen_widgets, @@ -1659,7 +1659,7 @@ static void ScenEditIndustryWndProc(Window *w, WindowEvent *e) } static const WindowDesc _scenedit_industry_normal_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_normal_widgets, @@ -1667,7 +1667,7 @@ static const WindowDesc _scenedit_industry_normal_desc = { }; static const WindowDesc _scenedit_industry_hilly_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_hilly_widgets, @@ -1675,7 +1675,7 @@ static const WindowDesc _scenedit_industry_hilly_desc = { }; static const WindowDesc _scenedit_industry_desert_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_desert_widgets, @@ -1683,7 +1683,7 @@ static const WindowDesc _scenedit_industry_desert_desc = { }; static const WindowDesc _scenedit_industry_candy_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_candy_widgets, -- cgit v1.2.3-70-g09d2