diff options
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index fc9c73a68..02ad7699e 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -130,8 +130,9 @@ void TextField::draw(gcn::Graphics *graphics) } graphics->setColor(mForegroundColor); - graphics->setFont(getFont()); - graphics->drawText(mText, mPadding - mXScroll, mPadding); + gcn::Font *const font = getFont(); + graphics->setFont(font); + font->drawString(graphics, mText, mPadding - mXScroll, mPadding); BLOCK_END("TextField::draw") } |