mirror of https://github.com/OpenTTD/OpenTTD
(svn r20618) -Fix [FS#4081]: drawing the "OpenTTD" text in the intro game caused crashes with very low resolutions
parent
c4ed8ee3e3
commit
1e0e4b8cb6
|
@ -249,7 +249,7 @@ struct MainWindow : Window
|
||||||
if (_game_mode == GM_MENU) {
|
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 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;
|
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++) {
|
for (uint i = 0; i < lengthof(title_sprites); i++) {
|
||||||
name_width += GetSpriteSize(title_sprites[i]).width;
|
name_width += GetSpriteSize(title_sprites[i]).width;
|
||||||
|
|
Loading…
Reference in New Issue