summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-18 09:43:50 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-18 09:43:50 +0000
commit1d3f427c6b4dd355c1b3e19feb3bf5380fd661c2 (patch)
tree89bf3aa13d41131761dfaaa7047c29283fcdc1ed /src/gui
parent0307a1ee1787c532b89f5f51a7a2d702c1304760 (diff)
downloadmana-1d3f427c6b4dd355c1b3e19feb3bf5380fd661c2.tar.gz
mana-1d3f427c6b4dd355c1b3e19feb3bf5380fd661c2.tar.bz2
mana-1d3f427c6b4dd355c1b3e19feb3bf5380fd661c2.tar.xz
mana-1d3f427c6b4dd355c1b3e19feb3bf5380fd661c2.zip
Corrected a range value bug for derived stats. Fixed, the percentage of the update win, updated debian information.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/updatewindow.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index b0e2a2b8..e0c098f0 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -69,7 +69,7 @@ UpdaterWindow::UpdaterWindow():
mPlayButton->setEnabled(false);
mPlayButton->addActionListener(this);
mProgressBar = new ProgressBar(0.0, 5, mCancelButton->getY() - 20 - 5,
- w - 10, 20, 37, 70, 23);
+ w - 10, 20, 37, 70, 200);
mLabel = new gcn::Label("Connecting...");
mLabel->setPosition(5, mProgressBar->getY() - mLabel->getHeight() - 5);
mScrollArea = new ScrollArea(mBrowserBox);
@@ -194,10 +194,8 @@ int UpdaterWindow::updateProgress(void *ptr,
float progress = dn / dt;
UpdaterWindow *uw = reinterpret_cast<UpdaterWindow *>(ptr);
- if (progress < 0)
- {
- progress = 0.0f;
- }
+ if (progress < 0) progress = 0.0f;
+ if (progress > 1) progress = 1.0f;
std::stringstream progressString;
progressString << uw->mCurrentFile