Changeset - r12323:ba4726a15973
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-07-05 16:55:26
yexo@openttd.org
(svn r16753) -Fix (r16740): Don't check the width of the same string 4 times, but pick the maximum width of all difficulty levels
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/intro_gui.cpp
Show inline comments
 
@@ -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));
 
			}
 
		}
0 comments (0 inline, 0 general)