summaryrefslogtreecommitdiff
path: root/src/station_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/station_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/station_gui.cpp')
-rw-r--r--src/station_gui.cpp7
1 files changed, 3 insertions, 4 deletions
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);