From 57174a9301aba626f8f25e86e93802636c4e8f45 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 22 Mar 2009 12:01:21 +0000 Subject: (svn r15808) -Codechange: use the new DrawString API in a number of GUIs --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/order_gui.cpp') diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 8a9472ea6..b133aac9c 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -833,7 +833,7 @@ public: if (i - this->vscroll.pos < this->vscroll.cap) { str = shared_orders ? STR_END_OF_SHARED_ORDERS : STR_882A_END_OF_ORDERS; - DrawString(2, y, str, (i == this->selected_order) ? TC_WHITE : TC_BLACK); + DrawString(this->widget[ORDER_WIDGET_ORDER_LIST].left + 2, this->widget[ORDER_WIDGET_ORDER_LIST].right - 2, y, str, (i == this->selected_order) ? TC_WHITE : TC_BLACK); } } -- cgit v1.2.3-70-g09d2