From da5d63e260ae88a82f91a998fa81844eec409ca1 Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 5 Jul 2009 16:55:26 +0000 Subject: (svn r16753) -Fix (r16740): Don't check the width of the same string 4 times, but pick the maximum width of all difficulty levels --- src/intro_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intro_gui.cpp') diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp index d61f5b252..dcc55b131 100644 --- a/src/intro_gui.cpp +++ b/src/intro_gui.cpp @@ -88,7 +88,7 @@ struct SelectGameWindow : public Window { Dimension d = {0, 0}; if (widget == SGI_DIFFICULTIES) { for (uint i = STR_DIFFICULTY_LEVEL_EASY; i <= STR_DIFFICULTY_LEVEL_CUSTOM; i++) { - SetDParam(0, STR_DIFFICULTY_LEVEL_EASY + _settings_newgame.difficulty.diff_level); + SetDParam(0, i); d = maxdim(d, GetStringBoundingBox(STR_INTRO_DIFFICULTY)); } } -- cgit v1.2.3-54-g00ecf