From 6ed69c8769cd6c8c79c77fc8116059b42f3653e7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 May 2013 17:02:05 +0300 Subject: add function to graphics class to set normal and outline colors at once. --- src/gui/widgets/textbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/textbox.cpp') 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)->setColor2(mForegroundColor2); + static_cast(graphics)->setColorAll( + mForegroundColor, mForegroundColor2); gcn::Font *const font = getFont(); const int fontHeight = font->getHeight(); -- cgit v1.2.3-70-g09d2