summaryrefslogtreecommitdiff
path: root/smallmap_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 /smallmap_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 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index fcb80a67b..e955e5d0f 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -968,7 +968,7 @@ static void SmallMapWindowProc(Window *w, WindowEvent *e)
}
static const WindowDesc _smallmap_desc = {
- -1,-1, 446, 314,
+ WDP_AUTO, WDP_AUTO, 446, 314,
WC_SMALLMAP,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_smallmap_widgets,
@@ -1081,7 +1081,7 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e)
}
static const WindowDesc _extra_view_port_desc = {
- -1,-1, 300, 268,
+ WDP_AUTO, WDP_AUTO, 300, 268,
WC_EXTRA_VIEW_PORT,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_extra_view_port_widgets,