diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 22:46:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 22:46:17 +0000 |
commit | f11300d1f95afd4aef64f994aecaaa5af446bf04 (patch) | |
tree | e1ae57a53d4852b46ae40e594822c459c6ed726a /src/misc_gui.cpp | |
parent | ce513b46b7d69e2ff53982341b214da07c9a8a1e (diff) | |
download | openttd-f11300d1f95afd4aef64f994aecaaa5af446bf04.tar.xz |
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index d74633750..009862c94 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1064,8 +1064,8 @@ void QueryString::DrawEditBox(Window *w, int wid) if (tb->caretxoffs + delta < 0) delta = -tb->caretxoffs; - DoDrawString(tb->buf, delta, 0, TC_YELLOW); - if (HasEditBoxFocus(w, wid) && tb->caret) DoDrawString("_", tb->caretxoffs + delta, 0, TC_WHITE); + DrawString(delta, tb->width, 0, tb->buf, TC_YELLOW); + if (HasEditBoxFocus(w, wid) && tb->caret) DrawString(tb->caretxoffs + delta, tb->width + 10, 0, "_", TC_WHITE); _cur_dpi = old_dpi; } |