diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-25 03:56:27 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-25 03:56:27 +0100 |
commit | 17d2756975a8ff22ecba92c055fa7a7f77d425c6 (patch) | |
tree | 76aaa104da3ee97b07aec7f2d972f8b8d6239d9a /src/gui/progressbar.cpp | |
parent | 7e928fc6559e89b64f49aea30d796dbfe75c4912 (diff) | |
parent | 61040888a373b03cc599750c33186848cae37ef4 (diff) | |
download | mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.tar.gz mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.tar.bz2 mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.tar.xz mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.zip |
Merge branch 'master' of git@gitorious.org:tmw/eathena
Diffstat (limited to 'src/gui/progressbar.cpp')
-rw-r--r-- | src/gui/progressbar.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp index 7b88a556..5ce01b35 100644 --- a/src/gui/progressbar.cpp +++ b/src/gui/progressbar.cpp @@ -88,8 +88,7 @@ void ProgressBar::logic() if (mBlueToGo < mBlue) mBlue--; } -void -ProgressBar::draw(gcn::Graphics *graphics) +void ProgressBar::draw(gcn::Graphics *graphics) { static_cast<Graphics*>(graphics)-> drawImageRect(0, 0, getWidth(), getHeight(), mBorder); @@ -99,21 +98,19 @@ ProgressBar::draw(gcn::Graphics *graphics) { graphics->setColor(gcn::Color(mRed, mGreen, mBlue, 200)); graphics->fillRectangle(gcn::Rectangle(4, 4, - (int)(mProgress * (getWidth() - 8)), + (int) (mProgress * (getWidth() - 8)), getHeight() - 8)); } } -void -ProgressBar::setProgress(float progress) +void ProgressBar::setProgress(float progress) { if (progress < 0.0f) mProgress = 0.0; else if (progress > 1.0f) mProgress = 1.0; else mProgress = progress; } -void -ProgressBar::setColor(Uint8 red, Uint8 green, Uint8 blue) +void ProgressBar::setColor(Uint8 red, Uint8 green, Uint8 blue) { mRedToGo = red; mGreenToGo = green; |