diff options
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(); } + } } |