summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 8f615fc70..603485f65 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -198,8 +198,11 @@ void TextField::draw(Graphics *graphics)
font->getWidth(mText.substr(0, mCaretPosition)) - mXScroll);
}
- graphics->setColorAll(mForegroundColor, mForegroundColor2);
- font->drawString(graphics, mText, mPadding - mXScroll, mPadding);
+ font->drawString(graphics,
+ mForegroundColor,
+ mForegroundColor2,
+ mText,
+ mPadding - mXScroll, mPadding);
BLOCK_END("TextField::draw")
}