summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-10 19:24:14 +0000
committerDarkvater <darkvater@openttd.org>2006-11-10 19:24:14 +0000
commitd50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (patch)
treec1fc1f90d309d87f532278a729d8ba806cc319fd /main_gui.c
parent0d9f80839f80edf41bd8ed75806b7901a553785a (diff)
downloadopenttd-d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b.tar.xz
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c12
1 files changed, 6 insertions, 6 deletions
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,