summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-04 17:02:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-04 17:02:05 +0300
commit6ed69c8769cd6c8c79c77fc8116059b42f3653e7 (patch)
tree48ede1453da63c58ba02ccc35ab06c3f7a61ddca /src/gui/widgets/avatarlistbox.cpp
parent002656b278ab1c2e09bca8f6ffd2d5c42d57b09c (diff)
downloadplus-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/avatarlistbox.cpp')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 3202a1e21..964a2ab82 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -110,8 +110,7 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics)
const std::string name = player_node->getName();
// Draw the list elements
- graphics->setColor(mForegroundColor);
- graphics->setColor2(mForegroundColor2);
+ graphics->setColorAll(mForegroundColor, mForegroundColor2);
for (int i = 0, y = 0;
i < model->getNumberOfElements();
++i, y += fontHeight)
@@ -260,8 +259,7 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics)
}
}
- graphics->setColor(mForegroundColor);
- graphics->setColor2(mForegroundColor2);
+ graphics->setColorAll(mForegroundColor, mForegroundColor2);
// Draw Name
if (a->getDisplayBold())