(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API

This commit is contained in:
rubidium
2009-03-21 22:46:17 +00:00
parent 6900854383
commit a1088869f5
10 changed files with 35 additions and 58 deletions

View File

@@ -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;
}