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/progressbar.cpp | |
parent | a928798a9326de1e6781e14c8ccf5abec1232385 (diff) | |
download | mana-client-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.tar.gz mana-client-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.tar.bz2 mana-client-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.tar.xz mana-client-a18d4dcf1eb9abb9b4ed8060aefd14088ccb9680.zip |
Code reformatting
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; |