summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-23 13:18:20 +0000
committerrubidium <rubidium@openttd.org>2009-11-23 13:18:20 +0000
commit5ef00aa15bed2999e1fe0e83f56f027163015e44 (patch)
tree18ae17a1f6509697e47aec74c49b51bef55244a5 /src
parente3c7e3c169036139cbdd00aaad35b73b5c90afb3 (diff)
downloadopenttd-5ef00aa15bed2999e1fe0e83f56f027163015e44.tar.xz
(svn r18254) -Codechange: make the highscore windows big font aware-ish till the point that it still fits within the graphics
Diffstat (limited to 'src')
-rw-r--r--src/highscore_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp
index acbdc4804..6f1671c47 100644
--- a/src/highscore_gui.cpp
+++ b/src/highscore_gui.cpp
@@ -115,11 +115,11 @@ struct EndGameWindow : EndGameHighScoreBaseWindow {
SetDParam(0, c->index);
SetDParam(1, c->index);
SetDParam(2, EndGameGetPerformanceTitleFromValue(c->old_economy[0].performance_history));
- DrawStringMultiLine(pt.x, pt.x + 640, pt.y + 140, pt.y + 206, STR_HIGHSCORE_PRESIDENT_OF_COMPANY_ACHIEVES_STATUS, TC_FROMSTRING, SA_CENTER);
+ DrawStringMultiLine(pt.x + 15, pt.x + 640 - 25, pt.y + 90, pt.y + 160, STR_HIGHSCORE_PRESIDENT_OF_COMPANY_ACHIEVES_STATUS, TC_FROMSTRING, SA_CENTER);
} else {
SetDParam(0, c->index);
SetDParam(1, EndGameGetPerformanceTitleFromValue(c->old_economy[0].performance_history));
- DrawStringMultiLine(pt.x, pt.x + 640, pt.y + 90, pt.y + 210, STR_HIGHSCORE_COMPANY_ACHIEVES_STATUS, TC_FROMSTRING, SA_CENTER);
+ DrawStringMultiLine(pt.x + 36, pt.x + 640, pt.y + 140, pt.y + 206, STR_HIGHSCORE_COMPANY_ACHIEVES_STATUS, TC_FROMSTRING, SA_CENTER);
}
}
};
@@ -168,7 +168,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
DrawString(pt.x + 71, pt.x + 569, pt.y + 140 + (i * 55), hs[i].company, colour);
SetDParam(0, hs[i].title);
SetDParam(1, hs[i].score);
- DrawString(pt.x + 71, pt.x + 569, pt.y + 160 + (i * 55), STR_HIGHSCORE_STATS, colour);
+ DrawString(pt.x + 71, pt.x + 569, pt.y + 140 + FONT_HEIGHT_LARGE + (i * 55), STR_HIGHSCORE_STATS, colour);
}
}
}