(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)

This commit is contained in:
rubidium
2009-03-15 15:12:06 +00:00
parent edacf53288
commit 7f468dc142
44 changed files with 369 additions and 348 deletions

View File

@@ -166,19 +166,19 @@ static const Widget _highscore_widgets[] = {
{ WIDGETS_END},
};
static const WindowDesc _highscore_desc = {
static const WindowDesc _highscore_desc(
0, 0, 641, 481, 641, 481,
WC_HIGHSCORE, WC_NONE,
0,
_highscore_widgets,
};
_highscore_widgets
);
static const WindowDesc _endgame_desc = {
static const WindowDesc _endgame_desc(
0, 0, 641, 481, 641, 481,
WC_ENDSCREEN, WC_NONE,
0,
_highscore_widgets,
};
_highscore_widgets
);
/** Show the highscore table for a given difficulty. When called from
* endgame ranking is set to the top5 element that was newly added