diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 20:12:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 20:12:12 +0000 |
commit | 45f189fdcaedd5f95dcbb3ce9a60f746603859e1 (patch) | |
tree | 963e15fde656667f8ede17763a536b8ec0282ff9 /src/widget.cpp | |
parent | 9fcff01850c4c18543c60cf477926b793052f1fd (diff) | |
download | openttd-45f189fdcaedd5f95dcbb3ce9a60f746603859e1.tar.xz |
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 82854b7df..088c6a7be 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -257,7 +257,7 @@ void Window::DrawWidgets() const case WWT_TEXT: { const StringID str = wi->data; - if (str != STR_NULL) DrawStringTruncated(r.left, r.top, str, (TextColour)wi->colour, r.right - r.left); + if (str != STR_NULL) DrawString(r.left, r.right, r.top, str, (TextColour)wi->colour); break; } @@ -265,7 +265,7 @@ void Window::DrawWidgets() const const StringID str = wi->data; DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->colour, FR_LOWERED | FR_DARKENED); - if (str != STR_NULL) DrawStringTruncated(r.left + 2, r.top + 1, str, TC_FROMSTRING, r.right - r.left - 10); + if (str != STR_NULL) DrawString(r.left + 2, r.right - 2, r.top + 1, str, TC_FROMSTRING); break; } @@ -488,7 +488,7 @@ void Window::DrawWidgets() const DrawFrameRect(r.left, r.top, r.right - 12, r.bottom, wi->colour, FR_NONE); DrawFrameRect(r.right - 11, r.top, r.right, r.bottom, wi->colour, clicked ? FR_LOWERED : FR_NONE); DrawString(r.right - (clicked ? 8 : 9), r.top + (clicked ? 2 : 1), STR_0225, TC_BLACK); - if (str != STR_NULL) DrawStringTruncated(r.left + 2, r.top + 1, str, TC_BLACK, r.right - r.left - 12); + if (str != STR_NULL) DrawString(r.left + 2, r.right - 14, r.top + 1, str, TC_BLACK); break; } @@ -499,7 +499,7 @@ void Window::DrawWidgets() const DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->colour, FR_LOWERED | FR_DARKENED); DrawFrameRect(r.right - 11, r.top + 1, r.right - 1, r.bottom - 1, wi->colour, clicked ? FR_LOWERED : FR_NONE); DrawString(r.right - (clicked ? 8 : 9), r.top + (clicked ? 2 : 1), STR_0225, TC_BLACK); - if (str != STR_NULL) DrawStringTruncated(r.left + 2, r.top + 2, str, TC_BLACK, r.right - r.left - 12); + if (str != STR_NULL) DrawString(r.left + 2, r.right - 13, r.top + 2, str, TC_BLACK); break; } } |