Mercurial > hg > openttd
diff src/player_gui.cpp @ 7341:549c757023fc draft
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 27 Jul 2007 12:49:04 +0000 |
parents | 550b96f71f7f |
children | 68e3f9ca1c02 |
line wrap: on
line diff
--- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -197,7 +197,7 @@ } static const WindowDesc _player_finances_desc = { - WDP_AUTO, WDP_AUTO, 407, 216, + WDP_AUTO, WDP_AUTO, 407, 216, 407, 216, WC_FINANCES, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _player_finances_widgets, @@ -205,7 +205,7 @@ }; static const WindowDesc _player_finances_small_desc = { - WDP_AUTO, WDP_AUTO, 280, 60, + WDP_AUTO, WDP_AUTO, 280, 60, 280, 60, WC_FINANCES, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _player_finances_small_widgets, @@ -213,7 +213,7 @@ }; static const WindowDesc _other_player_finances_desc = { - WDP_AUTO, WDP_AUTO, 407, 204, + WDP_AUTO, WDP_AUTO, 407, 204, 407, 204, WC_FINANCES, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _other_player_finances_widgets, @@ -221,7 +221,7 @@ }; static const WindowDesc _other_player_finances_small_desc = { - WDP_AUTO, WDP_AUTO, 280, 48, + WDP_AUTO, WDP_AUTO, 280, 48, 280, 48, WC_FINANCES, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _other_player_finances_small_widgets, @@ -480,7 +480,7 @@ }; static const WindowDesc _select_player_livery_2cc_desc = { - WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14, + WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14, 400, 49 + 1 * 14, WC_PLAYER_COLOR, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _select_player_livery_2cc_widgets, @@ -507,7 +507,7 @@ }; static const WindowDesc _select_player_livery_desc = { - WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14, + WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14, 275, 49 + 1 * 14, WC_PLAYER_COLOR, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _select_player_livery_widgets, @@ -599,7 +599,7 @@ }; static const WindowDesc _select_player_face_desc = { - WDP_AUTO, WDP_AUTO, 190, 149, + WDP_AUTO, WDP_AUTO, 190, 149, 190, 149, WC_PLAYER_FACE, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _select_player_face_widgets, @@ -912,7 +912,7 @@ static const WindowDesc _player_company_desc = { - WDP_AUTO, WDP_AUTO, 360, 170, + WDP_AUTO, WDP_AUTO, 360, 170, 360, 170, WC_COMPANY, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _player_company_widgets, @@ -972,7 +972,7 @@ }; static const WindowDesc _buy_company_desc = { - 153, 171, 334, 137, + 153, 171, 334, 137, 334, 137, WC_BUY_COMPANY, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _buy_company_widgets, @@ -1092,7 +1092,7 @@ }; static const WindowDesc _highscore_desc = { - 0, 0, 641, 481, + 0, 0, 641, 481, 641, 481, WC_HIGHSCORE, WC_NONE, 0, _highscore_widgets, @@ -1100,7 +1100,7 @@ }; static const WindowDesc _endgame_desc = { - 0, 0, 641, 481, + 0, 0, 641, 481, 641, 481, WC_ENDSCREEN, WC_NONE, 0, _highscore_widgets,