From 900364109597f02413e2f7a59e9b4e6cc9fdf97f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Mar 2009 22:00:00 +0000 Subject: (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. --- src/graph_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/graph_gui.cpp') 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; -- cgit v1.2.3-54-g00ecf