summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textbox.cpp')
-rw-r--r--src/gui/widgets/textbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp
index b0281e9bd..386a89bad 100644
--- a/src/gui/widgets/textbox.cpp
+++ b/src/gui/widgets/textbox.cpp
@@ -362,8 +362,8 @@ void TextBox::draw(gcn::Graphics* graphics)
mCaretRow * getFont()->getHeight());
}
- graphics->setColor(mForegroundColor);
- static_cast<Graphics*>(graphics)->setColor2(mForegroundColor2);
+ static_cast<Graphics*>(graphics)->setColorAll(
+ mForegroundColor, mForegroundColor2);
gcn::Font *const font = getFont();
const int fontHeight = font->getHeight();