diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-05 21:49:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-06 12:12:22 +0300 |
commit | 2bd59adc7c456ce6f377feac8bc838e8011ebfc8 (patch) | |
tree | f2f25428e42e59b9a6d55d7c0be9a99c42e96e40 /src/gui/widgets/avatarlistbox.cpp | |
parent | ac1ef6b19f5c1405cfaa239ab367a93b17043723 (diff) | |
download | manaplus-2bd59adc7c456ce6f377feac8bc838e8011ebfc8.tar.gz manaplus-2bd59adc7c456ce6f377feac8bc838e8011ebfc8.tar.bz2 manaplus-2bd59adc7c456ce6f377feac8bc838e8011ebfc8.tar.xz manaplus-2bd59adc7c456ce6f377feac8bc838e8011ebfc8.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index d5b6cbaf8..47debb1e7 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -25,8 +25,6 @@ #include "configuration.h" #include "graphicsvertexes.h" -#include "enums/gui/progresscolorid.h" - #include "being/localplayer.h" #include "gui/gui.h" @@ -42,8 +40,6 @@ #include "gui/windows/chatwindow.h" -#include "render/renderers.h" - #include "resources/image.h" #include "resources/mapitemtype.h" @@ -180,7 +176,8 @@ void AvatarListBox::draw(Graphics *graphics) if (a->getMaxHp()) { const ProgressColorIdT themeColor = (isPoison - ? ProgressColorId::PROG_HP_POISON : ProgressColorId::PROG_HP); + ? ProgressColorId::PROG_HP_POISON + : ProgressColorId::PROG_HP); Color color = Theme::getProgressColor( themeColor, static_cast<float>(a->getHp()) / static_cast<float>(a->getMaxHp())); @@ -417,7 +414,8 @@ void AvatarListBox::safeDraw(Graphics *graphics) if (a->getMaxHp()) { const ProgressColorIdT themeColor = (isPoison - ? ProgressColorId::PROG_HP_POISON : ProgressColorId::PROG_HP); + ? ProgressColorId::PROG_HP_POISON + : ProgressColorId::PROG_HP); Color color = Theme::getProgressColor( themeColor, static_cast<float>(a->getHp()) / static_cast<float>(a->getMaxHp())); |