summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressbar.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-07-20 22:41:04 +0200
committerBertram <bertram@cegetel.net>2009-07-20 22:41:04 +0200
commit89dafda9453e178f90fbcc6ddab4ae9367cbfff1 (patch)
tree5e15c81ea14686c7110f959b881aa5b34ada343d /src/gui/widgets/progressbar.cpp
parentddf75478b48173d82f455c99af3894bd0f9018ff (diff)
downloadmana-89dafda9453e178f90fbcc6ddab4ae9367cbfff1.tar.gz
mana-89dafda9453e178f90fbcc6ddab4ae9367cbfff1.tar.bz2
mana-89dafda9453e178f90fbcc6ddab4ae9367cbfff1.tar.xz
mana-89dafda9453e178f90fbcc6ddab4ae9367cbfff1.zip
Committed: 0000768: Progress bars smoothly scroll when the values have changed from last window open. The progress bars don't smoothly update the progress when the value is set at load time now. Only the ministatus and the status window are affected by this patch, as they are the onjly ones reported as flooding the gui.
Diffstat (limited to 'src/gui/widgets/progressbar.cpp')
-rw-r--r--src/gui/widgets/progressbar.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index 134d071f..359cbf49 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -43,14 +43,13 @@ ProgressBar::ProgressBar(float progress,
int width, int height,
const gcn::Color &color):
gcn::Widget(),
- mProgress(0.0f),
- mProgressToGo(0.0f),
+ mProgress(progress),
+ mProgressToGo(progress),
mSmoothProgress(true),
mColor(color),
mColorToGo(color),
mSmoothColorChange(true)
{
- setProgress(progress);
setSize(width, height);
if (mInstances == 0)