From a960e4a0abf38104f91c6a13d3d91efb9407b4c5 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 14 Jul 2005 18:34:47 +0000 Subject: Small optimizations to the progress bars code. --- src/gui/progressbar.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/progressbar.h') 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; -- cgit v1.2.3-70-g09d2