# HG changeset patch # User rubidium # Date 1282762971 0 # Node ID ffc487f3e0526132f25221205e3993aafad49f94 # Parent f253b1778aead66cee9b9210b586fc637393a850 (svn r20618) -Fix [FS#4081]: drawing the "OpenTTD" text in the intro game caused crashes with very low resolutions diff --git a/src/main_gui.cpp b/src/main_gui.cpp --- 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;