diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 22:00:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 22:00:00 +0000 |
commit | 900364109597f02413e2f7a59e9b4e6cc9fdf97f (patch) | |
tree | 308b7c3eda7e63a306620580ef4df5f4b99b893e /src/widget.cpp | |
parent | d452a0a0ecaad276c893b62ab8f008a5af85ba82 (diff) | |
download | openttd-900364109597f02413e2f7a59e9b4e6cc9fdf97f.tar.xz |
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 088c6a7be..8fcca88ca 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -250,7 +250,7 @@ void Window::DrawWidgets() const if ((wi->type & WWT_MASK) == WWT_TEXTBTN_2 && clicked) str++; - DrawStringCentered(((r.left + r.right + 1) >> 1) + clicked, ((r.top + r.bottom + 1) >> 1) - 5 + clicked, str, TC_FROMSTRING); + DrawString(r.left + clicked, r.right + clicked, ((r.top + r.bottom + 1) >> 1) - 5 + clicked, str, TC_FROMSTRING, SA_CENTER); break; } |