diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-07-14 18:34:47 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-07-14 18:34:47 +0000 |
commit | a960e4a0abf38104f91c6a13d3d91efb9407b4c5 (patch) | |
tree | 25d20937a950192055a56a1db99d8d5c9fe4995d /src/gui/progressbar.cpp | |
parent | 1de4ecd6690a0de808c079e4d3b6398574d189cb (diff) | |
download | mana-a960e4a0abf38104f91c6a13d3d91efb9407b4c5.tar.gz mana-a960e4a0abf38104f91c6a13d3d91efb9407b4c5.tar.bz2 mana-a960e4a0abf38104f91c6a13d3d91efb9407b4c5.tar.xz mana-a960e4a0abf38104f91c6a13d3d91efb9407b4c5.zip |
Small optimizations to the progress bars code.
Diffstat (limited to 'src/gui/progressbar.cpp')
-rw-r--r-- | src/gui/progressbar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp index 34c164d1..a12c6510 100644 --- a/src/gui/progressbar.cpp +++ b/src/gui/progressbar.cpp @@ -28,8 +28,8 @@ ImageRect ProgressBar::mBorder; int ProgressBar::mInstances = 0; -ProgressBar::ProgressBar(float progress, int x, int y, int width, int height, - int red, int green, int blue): +ProgressBar::ProgressBar(float progress, int x, int y, unsigned int width, unsigned int height, + unsigned char red, unsigned char green, unsigned char blue): gcn::Widget(), red(red), green(green), blue(blue), redToGo(red), greenToGo(green), blueToGo(blue) @@ -117,11 +117,11 @@ float ProgressBar::getProgress() return progress; } -void ProgressBar::setColor(int red, int green, int blue) +void ProgressBar::setColor(unsigned char red, unsigned char green, unsigned char blue) { - this->redToGo = red; - this->greenToGo = green; - this->blueToGo = blue; + redToGo = red; + greenToGo = green; + blueToGo = blue; } unsigned char ProgressBar::getRed() |