summaryrefslogtreecommitdiff
path: root/player_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
commite786cd5c6b828293c6860b838a9180b72a22cab7 (patch)
treec1fc1f90d309d87f532278a729d8ba806cc319fd /player_gui.c
parent70eba6d52586db62de3566c7e2c704db50a59bc9 (diff)
downloadopenttd-e786cd5c6b828293c6860b838a9180b72a22cab7.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.c18
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,