summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 19:10:26 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 19:10:26 +0000
commit8a758beec30dcf3c43d69d5adafbac59f296b9f1 (patch)
tree9ca3a33b849822c4e63bc8b455a7c3b5bb27da28 /src/widget.cpp
parent971ed8d2a328d0c1ded25fa61496b5b47304c6ac (diff)
downloadopenttd-8a758beec30dcf3c43d69d5adafbac59f296b9f1.tar.xz
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 2643eb9e3..0b10ea51a 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -478,7 +478,7 @@ void Window::DrawWidgets() const
GfxFillRect(r.left + 2, r.top + 2, r.right - 2, r.bottom - 2, _colour_gradient[_company_colours[this->owner]][4]);
}
- DrawStringCenteredTruncated(r.left + 2, r.right - 2, r.top + 2, wi->data, TC_FROMSTRING);
+ DrawString(r.left + 2, r.right - 2, r.top + 2, wi->data, TC_FROMSTRING, TA_CENTER);
break;
case WWT_DROPDOWN: {