(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.

This commit is contained in:
rubidium
2007-07-27 12:49:04 +00:00
parent ff85f640db
commit 13ab17bca8
39 changed files with 168 additions and 143 deletions

View File

@@ -197,7 +197,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e)
}
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_desc = {
};
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 _player_finances_small_desc = {
};
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_desc = {
};
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 Widget _select_player_livery_2cc_widgets[] = {
};
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 Widget _select_player_livery_widgets[] = {
};
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 Widget _select_player_face_widgets[] = {
};
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 void PlayerCompanyWndProc(Window *w, WindowEvent *e)
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 Widget _buy_company_widgets[] = {
};
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 Widget _highscore_widgets[] = {
};
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 _highscore_desc = {
};
static const WindowDesc _endgame_desc = {
0, 0, 641, 481,
0, 0, 641, 481, 641, 481,
WC_ENDSCREEN, WC_NONE,
0,
_highscore_widgets,