summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-10 23:04:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-10 23:04:39 +0000
commit34a718bbd2573477cb600cfa422c5669b1b9d6b2 (patch)
treee618e678162fa2f086b3d116006de0efafc1fcd9 /src/gui/progressbar.h
parent7550a006a6dfd185b3e970dbbb21ff053df75e0d (diff)
downloadMana-34a718bbd2573477cb600cfa422c5669b1b9d6b2.tar.gz
Mana-34a718bbd2573477cb600cfa422c5669b1b9d6b2.tar.bz2
Mana-34a718bbd2573477cb600cfa422c5669b1b9d6b2.tar.xz
Mana-34a718bbd2573477cb600cfa422c5669b1b9d6b2.zip
Fixed progress bars in OpenGL mode, now uses Guichan's fillRectangle.
Diffstat (limited to 'src/gui/progressbar.h')
-rw-r--r--src/gui/progressbar.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h
index c8bb22d6..b1f5bb1b 100644
--- a/src/gui/progressbar.h
+++ b/src/gui/progressbar.h
@@ -39,8 +39,7 @@ class ProgressBar : public gcn::Widget {
*/
ProgressBar(float progress = 0.0f, int x = 0, int y = 0,
int width = 40, int height = 7,
- unsigned char red = 150, unsigned green = 150,
- unsigned char blue = 150);
+ int red = 150, int green = 150, int blue = 150);
/**
* Destructor.
@@ -65,10 +64,7 @@ class ProgressBar : public gcn::Widget {
/**
* Change the filling of the progress bar.
*/
- void setColor(
- unsigned char red,
- unsigned char green,
- unsigned char blue);
+ void setColor(int red, int green, int blue);
/**
* Get The red value of color
@@ -96,16 +92,13 @@ class ProgressBar : public gcn::Widget {
private:
float progress;
- unsigned char red, green, blue;
+ int red, green, blue;
// Bar Images
Image *dBackground;
Image *dTopLeftBorder, *dTopRightBorder, *dBottomLeftBorder;
Image *dBottomRightBorder;
Image *dLeftBorder, *dRightBorder, *dTopBorder, *dBottomBorder;
-
- // Our color bar
- Image *colorBar;
};
#endif