summaryrefslogtreecommitdiff
path: root/src/highscore_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-22 09:34:06 +0000
committerrubidium <rubidium@openttd.org>2009-03-22 09:34:06 +0000
commite74dc1e1d6dc57b2d6b79ef921888c0204855139 (patch)
tree1266c6a78a4ae2bcbfd356af1e87bfdbb85fbe80 /src/highscore_gui.cpp
parent70d0f8857e5b984d5f74dda353413dc2cd8221ba (diff)
downloadopenttd-e74dc1e1d6dc57b2d6b79ef921888c0204855139.tar.xz
(svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
Diffstat (limited to 'src/highscore_gui.cpp')
-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 1aca9dcf5..462557cbc 100644
--- a/src/highscore_gui.cpp
+++ b/src/highscore_gui.cpp
@@ -102,11 +102,11 @@ struct EndGameWindow : EndGameHighScoreBaseWindow {
SetDParam(0, c->index);
SetDParam(1, c->index);
SetDParam(2, EndGameGetPerformanceTitleFromValue(c->old_economy[0].performance_history));
- DrawStringMultiCenter(x + (640 / 2), y + 107, STR_021C_OF_ACHIEVES_STATUS, 640);
+ DrawStringMultiLine(x, x + 640, y + 140, y + 206, STR_021C_OF_ACHIEVES_STATUS, SA_CENTER);
} else {
SetDParam(0, c->index);
SetDParam(1, EndGameGetPerformanceTitleFromValue(c->old_economy[0].performance_history));
- DrawStringMultiCenter(x + (640 / 2), y + 157, STR_021B_ACHIEVES_STATUS, 640);
+ DrawStringMultiLine(x, x + 640, y + 90, y + 210, STR_021B_ACHIEVES_STATUS, SA_CENTER);
}
}
};
@@ -144,7 +144,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
SetDParam(0, ORIGINAL_END_YEAR);
SetDParam(1, this->window_number + STR_6801_EASY);
- DrawStringMultiCenter(x + (640 / 2), y + 62, !_networking ? STR_0211_TOP_COMPANIES_WHO_REACHED : STR_TOP_COMPANIES_NETWORK_GAME, 500);
+ DrawStringMultiLine(x + 70, x + 570, y, y + 140, !_networking ? STR_0211_TOP_COMPANIES_WHO_REACHED : STR_TOP_COMPANIES_NETWORK_GAME, SA_CENTER);
/* Draw Highscore peepz */
for (uint8 i = 0; i < lengthof(_highscore_table[0]); i++) {