diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-04 17:02:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-04 17:02:05 +0300 |
commit | 6ed69c8769cd6c8c79c77fc8116059b42f3653e7 (patch) | |
tree | 48ede1453da63c58ba02ccc35ab06c3f7a61ddca /src/gui/widgets/textbox.cpp | |
parent | 002656b278ab1c2e09bca8f6ffd2d5c42d57b09c (diff) | |
download | plus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.gz plus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.bz2 plus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.xz plus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.zip |
add function to graphics class to set normal and outline colors at once.
Diffstat (limited to 'src/gui/widgets/textbox.cpp')
-rw-r--r-- | src/gui/widgets/textbox.cpp | 4 |
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(); |