summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-26 10:48:30 +0000
committerrubidium <rubidium@openttd.org>2009-04-26 10:48:30 +0000
commitce171535d19aaa0aac7397845dadfd358f952b07 (patch)
treed9a50e8a2d996349e4a3743bdb7e29426fa1afb7 /src/graph_gui.cpp
parent11c6d30e77ab52b233b3a16a17054d2d65c8f410 (diff)
downloadopenttd-ce171535d19aaa0aac7397845dadfd358f952b07.tar.xz
(svn r16157) -Fix: wrong truncation of refit cost/graph x labels because they were multiline strings being drawn using DrawString instead of DrawStringMultiLine.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 090fa2a48..157363b89 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -303,7 +303,7 @@ protected:
SetDParam(0, month + STR_MONTH_ABBREV_JAN);
SetDParam(1, month + STR_MONTH_ABBREV_JAN + 2);
SetDParam(2, year);
- DrawString(x, x + GRAPH_X_POSITION_SEPARATION, y, month == 0 ? STR_GRAPH_X_LABEL_MONTH_YEAR : STR_GRAPH_X_LABEL_MONTH, graph_axis_label_colour);
+ DrawStringMultiLine(x, x + GRAPH_X_POSITION_SEPARATION, y, this->height, month == 0 ? STR_GRAPH_X_LABEL_MONTH_YEAR : STR_GRAPH_X_LABEL_MONTH, graph_axis_label_colour);
month += 3;
if (month >= 12) {