diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-10 19:24:14 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-10 19:24:14 +0000 |
commit | d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (patch) | |
tree | c1fc1f90d309d87f532278a729d8ba806cc319fd /player_gui.c | |
parent | 0d9f80839f80edf41bd8ed75806b7901a553785a (diff) | |
download | openttd-d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b.tar.xz |
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
Diffstat (limited to 'player_gui.c')
-rw-r--r-- | player_gui.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/player_gui.c b/player_gui.c index 798c805bb..a1366c12a 100644 --- a/player_gui.c +++ b/player_gui.c @@ -188,7 +188,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e) } static const WindowDesc _player_finances_desc = { - -1,-1, 407, 216, + WDP_AUTO, WDP_AUTO, 407, 216, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _player_finances_widgets, @@ -196,7 +196,7 @@ static const WindowDesc _player_finances_desc = { }; static const WindowDesc _player_finances_small_desc = { - -1,-1, 280, 60, + WDP_AUTO, WDP_AUTO, 280, 60, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _player_finances_small_widgets, @@ -204,7 +204,7 @@ static const WindowDesc _player_finances_small_desc = { }; static const WindowDesc _other_player_finances_desc = { - -1,-1, 407, 204, + WDP_AUTO, WDP_AUTO, 407, 204, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _other_player_finances_widgets, @@ -212,7 +212,7 @@ static const WindowDesc _other_player_finances_desc = { }; static const WindowDesc _other_player_finances_small_desc = { - -1,-1, 280, 48, + WDP_AUTO, WDP_AUTO, 280, 48, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _other_player_finances_small_widgets, @@ -470,7 +470,7 @@ static const Widget _select_player_livery_2cc_widgets[] = { }; static const WindowDesc _select_player_livery_2cc_desc = { - -1,-1, 400, 49 + 1 * 14, + WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14, WC_PLAYER_COLOR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _select_player_livery_2cc_widgets, @@ -497,7 +497,7 @@ static const Widget _select_player_livery_widgets[] = { }; static const WindowDesc _select_player_livery_desc = { - -1, -1, 275, 49 + 1 * 14, + WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14, WC_PLAYER_COLOR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _select_player_livery_widgets, @@ -551,7 +551,7 @@ static const Widget _select_player_face_widgets[] = { }; static const WindowDesc _select_player_face_desc = { - -1,-1, 190, 149, + WDP_AUTO, WDP_AUTO, 190, 149, WC_PLAYER_FACE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _select_player_face_widgets, @@ -867,7 +867,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) static const WindowDesc _player_company_desc = { - -1, -1, 360, 170, + WDP_AUTO, WDP_AUTO, 360, 170, WC_COMPANY, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _player_company_widgets, @@ -928,7 +928,7 @@ static const Widget _buy_company_widgets[] = { }; static const WindowDesc _buy_company_desc = { - 153,171, 334, 137, + 153, 171, 334, 137, WC_BUY_COMPANY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _buy_company_widgets, |