summaryrefslogtreecommitdiff
path: root/src/network
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/network
parent900364109597f02413e2f7a59e9b4e6cc9fdf97f (diff)
downloadopenttd-69decac4065847ee5384ed68cc70c2d68bc3ddb4.tar.xz
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_chat_gui.cpp2
-rw-r--r--src/network/network_content_gui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index fc77b56c6..56ec30a3d 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -445,7 +445,7 @@ public:
this->DrawWidgets();
assert((uint)this->dtype < lengthof(chat_captions));
- DrawStringRightAligned(this->widget[NWCW_TEXTBOX].left - 2, this->widget[NWCW_TEXTBOX].top + 1, chat_captions[this->dtype], TC_BLACK);
+ DrawString(this->widget[NWCW_BACKGROUND].left, this->widget[NWCW_TEXTBOX].left - 2, this->widget[NWCW_TEXTBOX].top + 1, chat_captions[this->dtype], TC_BLACK, SA_RIGHT);
this->DrawEditBox(NWCW_TEXTBOX);
}
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index f70502f9c..d746fe93c 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -392,7 +392,7 @@ public:
/* Edit box to filter for keywords */
this->DrawEditBox(NCLWW_FILTER);
- DrawStringRightAligned(this->widget[NCLWW_FILTER].left - 8, this->widget[NCLWW_FILTER].top + 2, STR_CONTENT_FILTER_TITLE, TC_FROMSTRING);
+ DrawString(this->widget[NCLWW_MATRIX].left, this->widget[NCLWW_FILTER].left - 8, this->widget[NCLWW_FILTER].top + 2, STR_CONTENT_FILTER_TITLE, TC_FROMSTRING, SA_RIGHT);
switch (this->content.SortType()) {
case NCLWW_CHECKBOX - NCLWW_CHECKBOX: this->DrawSortButtonState(NCLWW_CHECKBOX, arrow); break;