Mercurial > hg > openttd
changeset 15930:ffc487f3e052 draft
(svn r20618) -Fix [FS#4081]: drawing the "OpenTTD" text in the intro game caused crashes with very low resolutions
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 25 Aug 2010 19:02:51 +0000 |
parents | f253b1778aea |
children | 9f6b79adc58d |
files | src/main_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -249,7 +249,7 @@ 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;