From c17b9c5e3d6314b8740a5c46209719ef5d40f24a Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 5 Nov 2006 19:27:44 +0000 Subject: Fixed percentage indicator of update window. --- ChangeLog | 2 ++ src/gui/updatewindow.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0aca21c5..fdce4aec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * src/gui/trade.cpp: Fixed money field to no longer hide below the bottom of the window. * src/CMakeLists.txt: Added shoplistbox.h/cpp files. + * src/gui/updatewindow.cpp: Fixed percentage indicator of update + window. 2006-11-05 Bjørn Lindeijer diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 89d1793e..d8244d37 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -198,7 +198,7 @@ int UpdaterWindow::updateProgress(void *ptr, if (progress > 1) progress = 1.0f; uw->setLabel( - uw->mCurrentFile + " (" + toString((int)progress * 100) + "%)"); + uw->mCurrentFile + " (" + toString((int) (progress * 100)) + "%)"); uw->setProgress(progress); if (state != UPDATE_STATE || uw->mDownloadStatus == UPDATE_ERROR) -- cgit v1.2.3-70-g09d2