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) --- town_gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'town_gui.c') 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, -- cgit v1.2.3-54-g00ecf