diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-14 02:54:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-14 02:54:44 +0300 |
commit | 84499779fcf0c8b5392a88f1c9311775e692ebef (patch) | |
tree | f390326a50eed73d8f8c62107979a4d81093ce52 /src/gui/widgets/avatarlistbox.cpp | |
parent | 4ee30f47b491de0ace9b692072fd286cf12c7828 (diff) | |
download | manaplus-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.gz manaplus-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.bz2 manaplus-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.xz manaplus-84499779fcf0c8b5392a88f1c9311775e692ebef.zip |
Improve a bit some gui controls speed.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 805922b2b..8de202120 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -102,7 +102,7 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) Graphics *const graphics = static_cast<Graphics *const>(gcnGraphics); mHighlightColor.a = static_cast<int>(mAlpha * 255.0f); - graphics->setColor(mHighlightColor); +// graphics->setColor(mHighlightColor); graphics->setFont(getFont()); const int fontHeight = getFont()->getHeight(); @@ -175,28 +175,8 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) if (parent) { -// int diff; -// if (a->getDamageHp() > 1024) -// diff = 0; -// else -// diff = 1024 - a->getDamageHp(); gcn::Color color = Theme::getProgressColor(Theme::PROG_HP, 1); -// 0 / 1024); -/* - if (a->getDamageHp() >= 400) - { - } - else - { -// int intens = 1024/(400 - a->getDamageHp()); - int intens = a->getDamageHp() / 1024; - if (intens > 1) - intens = 1; - color = Theme::getProgressColor(Theme::PROG_HP, - intens); - } -*/ color.a = 80; graphics->setColor(color); |