diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-08 18:27:27 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-08 18:29:54 +0200 |
commit | 8ee8ea70b5a32e1b8a5ad3e670cfe9ebee47bb4c (patch) | |
tree | 694cbbfbf0e191c8a3f245441a93cc027319a8f6 /src/main.cpp | |
parent | b4150856b56584b3922f2a9e2489ba472d2e864b (diff) | |
download | mana-8ee8ea70b5a32e1b8a5ad3e670cfe9ebee47bb4c.tar.gz mana-8ee8ea70b5a32e1b8a5ad3e670cfe9ebee47bb4c.tar.bz2 mana-8ee8ea70b5a32e1b8a5ad3e670cfe9ebee47bb4c.tar.xz mana-8ee8ea70b5a32e1b8a5ad3e670cfe9ebee47bb4c.zip |
Fixed one pixel missing from progress bars
Also fixed the progress bar during connecting to reset again when full,
by disabling the smooth updating there.
The ProgressBar now uses gcn::Color instead of three separate color
attributes.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5776341b..2d5899f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -922,7 +922,9 @@ int main(int argc, char *argv[]) gcn::Container *top = static_cast<gcn::Container*>(gui->getTop()); Desktop *desktop = new Desktop; top->add(desktop); - ProgressBar *progressBar = new ProgressBar(0.0f, 100, 20, 168, 116, 31); + ProgressBar *progressBar = new ProgressBar(0.0f, 100, 20, + gcn::Color(168, 116, 31)); + progressBar->setSmoothProgress(false); gcn::Label *progressLabel = new Label; top->add(progressBar, 5, top->getHeight() - 5 - progressBar->getHeight()); top->add(progressLabel, 15 + progressBar->getWidth(), |