# HG changeset patch # User yexo # Date 2009-07-05 16:55:26 # Node ID ba4726a159730d3528193132313018e9ce39990a # Parent e6ca8896bfec8fc90e0788931d4588cc05183746 (svn r16753) -Fix (r16740): Don't check the width of the same string 4 times, but pick the maximum width of all difficulty levels diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp --- 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)); } }