diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-24 19:45:33 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-24 19:45:33 +0100 |
commit | a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680 (patch) | |
tree | d625a96d6d978d00644e9dd6ffd75e099eb43149 /src/gui/ministatus.cpp | |
parent | a928798a9326de1e6781e14c8ccf5abec1232385 (diff) | |
download | mana-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.tar.gz mana-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.tar.bz2 mana-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.tar.xz mana-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.zip |
Code reformatting
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r-- | src/gui/ministatus.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index fa4f75da..f49022b6 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -72,8 +72,7 @@ MiniStatusWindow::MiniStatusWindow(): loadWindowState(); } -void -MiniStatusWindow::setIcon(int index, AnimatedSprite *sprite) +void MiniStatusWindow::setIcon(int index, AnimatedSprite *sprite) { if (index >= (int) mIcons.size()) mIcons.resize(index + 1, NULL); @@ -84,8 +83,7 @@ MiniStatusWindow::setIcon(int index, AnimatedSprite *sprite) mIcons[index] = sprite; } -void -MiniStatusWindow::eraseIcon(int index) +void MiniStatusWindow::eraseIcon(int index) { mIcons.erase(mIcons.begin() + index); } @@ -148,20 +146,20 @@ void MiniStatusWindow::update() } -void MiniStatusWindow::draw(gcn::Graphics *gcn_graphics) +void MiniStatusWindow::draw(gcn::Graphics *graphics) { update(); - drawChildren(gcn_graphics); + drawChildren(graphics); } -void -MiniStatusWindow::drawIcons(Graphics *graphics) +void MiniStatusWindow::drawIcons(Graphics *graphics) { // Draw icons int icon_x = mXpBar->getX() + mXpBar->getWidth() + 4; - for (unsigned int i = 0; i < mIcons.size(); i++) + for (unsigned int i = 0; i < mIcons.size(); i++) { if (mIcons[i]) { mIcons[i]->draw(graphics, icon_x, 3); icon_x += 2 + mIcons[i]->getWidth(); } + } } |