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/avatarlistbox.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/avatarlistbox.cpp') 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()) -- cgit v1.2.3-70-g09d2