summaryrefslogtreecommitdiff
path: root/town_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 /town_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 'town_gui.c')
-rw-r--r--town_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/town_gui.c b/town_gui.c
index af0a92274..03f87edad 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -210,7 +210,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
}
static const WindowDesc _town_authority_desc = {
- -1, -1, 317, 222,
+ WDP_AUTO, WDP_AUTO, 317, 222,
WC_TOWN_AUTHORITY,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
_town_authority_widgets,
@@ -304,7 +304,7 @@ static const Widget _town_view_widgets[] = {
};
static const WindowDesc _town_view_desc = {
- -1, -1, 260, 150,
+ WDP_AUTO, WDP_AUTO, 260, 150,
WC_TOWN_VIEW,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
_town_view_widgets,
@@ -327,7 +327,7 @@ static const Widget _town_view_scen_widgets[] = {
};
static const WindowDesc _town_view_scen_desc = {
- -1, -1, 260, 150,
+ WDP_AUTO, WDP_AUTO, 260, 150,
WC_TOWN_VIEW,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
_town_view_scen_widgets,
@@ -505,7 +505,7 @@ static void TownDirectoryWndProc(Window *w, WindowEvent *e)
}
static const WindowDesc _town_directory_desc = {
- -1, -1, 208, 202,
+ WDP_AUTO, WDP_AUTO, 208, 202,
WC_TOWN_DIRECTORY,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_town_directory_widgets,