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/station_gui.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/station_gui.cpp') diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 565402649..ea35138cd 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -334,17 +334,16 @@ public: cg_ofst = HasBit(this->cargo_filter, c) ? 2 : 1; GfxFillRect(x + cg_ofst, y + cg_ofst, x + cg_ofst + 10 , y + cg_ofst + 7, cs->rating_colour); - DrawStringCentered(x + 6 + cg_ofst, y + cg_ofst, cs->abbrev, TC_BLACK); + DrawString(x + cg_ofst, x + 12 + cg_ofst, y + cg_ofst, cs->abbrev, TC_BLACK, SA_CENTER); x += 14; i++; } - x += 6; cg_ofst = this->IsWidgetLowered(SLW_NOCARGOWAITING) ? 2 : 1; - DrawStringCentered(x + cg_ofst, y + cg_ofst, STR_ABBREV_NONE, TC_BLACK); + DrawString(x + cg_ofst, x + cg_ofst + 12, y + cg_ofst, STR_ABBREV_NONE, TC_BLACK, SA_CENTER); x += 14; cg_ofst = this->IsWidgetLowered(SLW_CARGOALL) ? 2 : 1; - DrawStringCentered(x + cg_ofst, y + cg_ofst, STR_ABBREV_ALL, TC_BLACK); + DrawString(x + cg_ofst, x + cg_ofst + 12, y + cg_ofst, STR_ABBREV_ALL, TC_BLACK, SA_CENTER); cg_ofst = this->IsWidgetLowered(SLW_FACILALL) ? 2 : 1; DrawString(71 + cg_ofst, y + cg_ofst, STR_ABBREV_ALL, TC_BLACK); -- cgit v1.2.3-70-g09d2