summaryrefslogtreecommitdiff
path: root/industry_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 /industry_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 'industry_gui.c')
-rw-r--r--industry_gui.c20
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,