summaryrefslogtreecommitdiff
path: root/src/station_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/station_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/station_gui.cpp')
-rw-r--r--src/station_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index ea35138cd..460f4a947 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -817,10 +817,10 @@ struct StationViewWindow : public Window {
if (HasBit(transfers, cd->cargo)) {
/* This cargo has transfers waiting so show the expand or shrink 'button' */
const char *sym = HasBit(this->cargo, cd->cargo) ? "-" : "+";
- DrawStringRightAligned(x + width - 8, y, STR_0009, TC_FROMSTRING);
- DoDrawString(sym, x + width - 6, y, TC_YELLOW);
+ DrawString(this->widget[SVW_WAITING].left, this->widget[SVW_WAITING].right - 12, y, STR_0009, TC_FROMSTRING, SA_RIGHT);
+ DrawString(this->widget[SVW_WAITING].right - 10, this->widget[SVW_WAITING].right, y, sym, TC_YELLOW);
} else {
- DrawStringRightAligned(x + width, y, STR_0009, TC_FROMSTRING);
+ DrawString(this->widget[SVW_WAITING].left, this->widget[SVW_WAITING].right - 4, y, STR_0009, TC_FROMSTRING, SA_RIGHT);
}
} else {
SetDParam(0, cd->cargo);