summaryrefslogtreecommitdiff
path: root/src/highscore_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 15:12:06 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 15:12:06 +0000
commitf9def73be628b8298eb9164ebdf5d0d77f30b106 (patch)
tree66a1daaed45d405317364932c5184ead15c023d4 /src/highscore_gui.cpp
parente9ae5ae307d3f4064a46175f4f66ca6a372f5578 (diff)
downloadopenttd-f9def73be628b8298eb9164ebdf5d0d77f30b106.tar.xz
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
Diffstat (limited to 'src/highscore_gui.cpp')
-rw-r--r--src/highscore_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp
index 372e5553b..095e973c0 100644
--- a/src/highscore_gui.cpp
+++ b/src/highscore_gui.cpp
@@ -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