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 /graph_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 'graph_gui.c')
-rw-r--r-- | graph_gui.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/graph_gui.c b/graph_gui.c index aab8959cc..fde5f50bc 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -283,7 +283,7 @@ static const Widget _graph_legend_widgets[] = { }; static const WindowDesc _graph_legend_desc = { - -1, -1, 250, 114, + WDP_AUTO, WDP_AUTO, 250, 114, WC_GRAPH_LEGEND,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _graph_legend_widgets, @@ -384,7 +384,7 @@ static const Widget _operating_profit_widgets[] = { }; static const WindowDesc _operating_profit_desc = { - -1, -1, 576, 174, + WDP_AUTO, WDP_AUTO, 576, 174, WC_OPERATING_PROFIT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _operating_profit_widgets, @@ -459,7 +459,7 @@ static const Widget _income_graph_widgets[] = { }; static const WindowDesc _income_graph_desc = { - -1, -1, 576, 142, + WDP_AUTO, WDP_AUTO, 576, 142, WC_INCOME_GRAPH,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _income_graph_widgets, @@ -532,7 +532,7 @@ static const Widget _delivered_cargo_graph_widgets[] = { }; static const WindowDesc _delivered_cargo_graph_desc = { - -1, -1, 576, 142, + WDP_AUTO, WDP_AUTO, 576, 142, WC_DELIVERED_CARGO,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _delivered_cargo_graph_widgets, @@ -608,7 +608,7 @@ static const Widget _performance_history_widgets[] = { }; static const WindowDesc _performance_history_desc = { - -1, -1, 576, 238, + WDP_AUTO, WDP_AUTO, 576, 238, WC_PERFORMANCE_HISTORY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _performance_history_widgets, @@ -681,7 +681,7 @@ static const Widget _company_value_graph_widgets[] = { }; static const WindowDesc _company_value_graph_desc = { - -1, -1, 576, 238, + WDP_AUTO, WDP_AUTO, 576, 238, WC_COMPANY_VALUE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _company_value_graph_widgets, @@ -796,7 +796,7 @@ static const Widget _cargo_payment_rates_widgets[] = { }; static const WindowDesc _cargo_payment_rates_desc = { - -1, -1, 568, 142, + WDP_AUTO, WDP_AUTO, 568, 142, WC_PAYMENT_RATES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _cargo_payment_rates_widgets, @@ -888,7 +888,7 @@ static const Widget _company_league_widgets[] = { }; static const WindowDesc _company_league_desc = { - -1, -1, 400, 97, + WDP_AUTO, WDP_AUTO, 400, 97, WC_COMPANY_LEAGUE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _company_league_widgets, @@ -1110,7 +1110,7 @@ static const Widget _performance_rating_detail_widgets[] = { }; static const WindowDesc _performance_rating_detail_desc = { - -1, -1, 299, 228, + WDP_AUTO, WDP_AUTO, 299, 228, WC_PERFORMANCE_DETAIL,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _performance_rating_detail_widgets, @@ -1239,7 +1239,7 @@ static const Widget _sign_list_widget[] = { }; static const WindowDesc _sign_list_desc = { - -1, -1, 358, 138, + WDP_AUTO, WDP_AUTO, 358, 138, WC_SIGN_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE, _sign_list_widget, |