summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 12:24:36 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 12:24:36 +0000
commit76185faa619fd06576f2e67e1f2d5f1fb659e340 (patch)
tree48a7bdff1cbee3f0485a84991c9beac6bd9929a6 /src/gui/progressbar.cpp
parente5f795ad9952b8bba6993ee3e324b22a0f104816 (diff)
downloadmana-76185faa619fd06576f2e67e1f2d5f1fb659e340.tar.gz
mana-76185faa619fd06576f2e67e1f2d5f1fb659e340.tar.bz2
mana-76185faa619fd06576f2e67e1f2d5f1fb659e340.tar.xz
mana-76185faa619fd06576f2e67e1f2d5f1fb659e340.zip
Removed coordinate arguments from ProgressBar ctor.
Diffstat (limited to 'src/gui/progressbar.cpp')
-rw-r--r--src/gui/progressbar.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp
index 0863db98..5f047c6a 100644
--- a/src/gui/progressbar.cpp
+++ b/src/gui/progressbar.cpp
@@ -33,7 +33,7 @@
ImageRect ProgressBar::mBorder;
int ProgressBar::mInstances = 0;
-ProgressBar::ProgressBar(float progress, int x, int y,
+ProgressBar::ProgressBar(float progress,
unsigned int width, unsigned int height,
Uint8 red, Uint8 green, Uint8 blue):
gcn::Widget(),
@@ -41,8 +41,6 @@ ProgressBar::ProgressBar(float progress, int x, int y,
mRedToGo(red), mGreenToGo(green), mBlueToGo(blue)
{
setProgress(progress);
- setX(x);
- setY(y);
setWidth(width);
setHeight(height);
@@ -98,16 +96,16 @@ void
ProgressBar::draw(gcn::Graphics *graphics)
{
dynamic_cast<Graphics*>(graphics)->drawImageRect(0, 0,
- getWidth(), getHeight(),
- mBorder);
+ getWidth(), getHeight(),
+ mBorder);
// The bar
if (mProgress > 0)
{
graphics->setColor(gcn::Color(mRed, mGreen, mBlue, 200));
graphics->fillRectangle(gcn::Rectangle(4, 4,
- (int)(mProgress * (getWidth() - 8)),
- getHeight() - 8));
+ (int)(mProgress * (getWidth() - 8)),
+ getHeight() - 8));
}
}