summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 22:22:00 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 22:22:00 +0000
commit69decac4065847ee5384ed68cc70c2d68bc3ddb4 (patch)
tree490f52839e2087bf44ad9edab6d75d9557f3525f /src/graph_gui.cpp
parent900364109597f02413e2f7a59e9b4e6cc9fdf97f (diff)
downloadopenttd-69decac4065847ee5384ed68cc70c2d68bc3ddb4.tar.xz
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 3429fb409..1d32f1f5c 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -248,7 +248,7 @@ protected:
for (int i = 0; i < GRAPH_NUM_LINES_Y; i++) {
SetDParam(0, this->format_str_y_axis);
SetDParam(1, y_label);
- DrawStringRightAligned(x, y, STR_0170, graph_axis_label_colour);
+ DrawString(x - GRAPH_X_POSITION_BEGINNING, x, y, STR_0170, graph_axis_label_colour, SA_RIGHT);
y_label -= y_label_separation;
y += (this->gd_height / (GRAPH_NUM_LINES_Y - 1));
@@ -982,7 +982,7 @@ public:
/* Draw the score */
SetDParam(0, score);
- DrawStringRightAligned(107, y, STR_PERFORMANCE_DETAIL_INT, TC_FROMSTRING);
+ DrawString(0, 107, y, STR_PERFORMANCE_DETAIL_INT, TC_FROMSTRING, SA_RIGHT);
/* Calculate the %-bar */
x = Clamp(val, 0, needed) * 50 / needed;