diff options
author | rubidium <rubidium@openttd.org> | 2010-08-25 19:02:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-25 19:02:51 +0000 |
commit | 1e0e4b8cb67bcbb6c9fc7dfbd6a8824b19ece985 (patch) | |
tree | 3ca6806bd909a6d3782db7500c94dc01d45cc36c /src | |
parent | c4ed8ee3e3835afefcf7d3b99ffde58d0f1ab1ab (diff) | |
download | openttd-1e0e4b8cb67bcbb6c9fc7dfbd6a8824b19ece985.tar.xz |
(svn r20618) -Fix [FS#4081]: drawing the "OpenTTD" text in the intro game caused crashes with very low resolutions
Diffstat (limited to 'src')
-rw-r--r-- | src/main_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 7d3954699..1a4e876d1 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -249,7 +249,7 @@ struct MainWindow : Window if (_game_mode == GM_MENU) { static const SpriteID title_sprites[] = {SPR_OTTD_O, SPR_OTTD_P, SPR_OTTD_E, SPR_OTTD_N, SPR_OTTD_T, SPR_OTTD_T, SPR_OTTD_D}; static const uint LETTER_SPACING = 10; - uint name_width = (lengthof(title_sprites) - 1) * LETTER_SPACING; + int name_width = (lengthof(title_sprites) - 1) * LETTER_SPACING; for (uint i = 0; i < lengthof(title_sprites); i++) { name_width += GetSpriteSize(title_sprites[i]).width; |