summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 22:00:00 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 22:00:00 +0000
commit900364109597f02413e2f7a59e9b4e6cc9fdf97f (patch)
tree308b7c3eda7e63a306620580ef4df5f4b99b893e /src/graph_gui.cpp
parentd452a0a0ecaad276c893b62ab8f008a5af85ba82 (diff)
downloadopenttd-900364109597f02413e2f7a59e9b4e6cc9fdf97f.tar.xz
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 44cfe75ec..3429fb409 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -275,13 +275,13 @@ protected:
}
} else {
/* Draw the label under the data point rather than on the grid line. */
- x = this->gd_left + GRAPH_X_POSITION_BEGINNING + (GRAPH_X_POSITION_SEPARATION / 2) + 1;
+ x = this->gd_left + GRAPH_X_POSITION_BEGINNING;
y = this->gd_top + this->gd_height + 1;
uint16 label = this->x_values_start;
for (int i = 0; i < this->num_on_x_axis; i++) {
SetDParam(0, label);
- DrawStringCentered(x, y, STR_01CB, graph_axis_label_colour);
+ DrawString(x + 1, x + GRAPH_X_POSITION_SEPARATION - 1, y, STR_01CB, graph_axis_label_colour, SA_CENTER);
label += this->x_values_increment;
x += GRAPH_X_POSITION_SEPARATION;
@@ -1002,7 +1002,7 @@ public:
/* Draw it */
SetDParam(0, x);
- DrawStringCentered(137, y, STR_PERFORMANCE_DETAIL_PERCENT, TC_FROMSTRING);
+ DrawString(112, 162, y, STR_PERFORMANCE_DETAIL_PERCENT, TC_FROMSTRING, SA_CENTER);
/* SCORE_LOAN is inversed */
if (i == SCORE_LOAN) val = needed - val;