summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-07-14 18:34:47 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-07-14 18:34:47 +0000
commita960e4a0abf38104f91c6a13d3d91efb9407b4c5 (patch)
tree25d20937a950192055a56a1db99d8d5c9fe4995d /src/gui/progressbar.h
parent1de4ecd6690a0de808c079e4d3b6398574d189cb (diff)
downloadmana-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.h')
-rw-r--r--src/gui/progressbar.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h
index 9568de9d..9b0a1041 100644
--- a/src/gui/progressbar.h
+++ b/src/gui/progressbar.h
@@ -39,8 +39,8 @@ class ProgressBar : public gcn::Widget {
* Constructor, initializes the progress with the given value.
*/
ProgressBar(float progress = 0.0f, int x = 0, int y = 0,
- int width = 40, int height = 7,
- int red = 150, int green = 150, int blue = 150);
+ unsigned int width = 40, unsigned int height = 7,
+ unsigned char red = 150, unsigned char green = 150, unsigned char blue = 150);
/**
* Destructor.
@@ -70,7 +70,7 @@ class ProgressBar : public gcn::Widget {
/**
* Change the filling of the progress bar.
*/
- void setColor(int red, int green, int blue);
+ void setColor(unsigned char red, unsigned char green, unsigned char blue);
/**
* Get The red value of color
@@ -89,8 +89,8 @@ class ProgressBar : public gcn::Widget {
private:
float progress;
- int red, green, blue;
- int redToGo, greenToGo, blueToGo;
+ unsigned char red, green, blue;
+ unsigned char redToGo, greenToGo, blueToGo;
static ImageRect mBorder;
static int mInstances;