- ftp progressbar calculation error fix

This commit is contained in:
Mark Vejvoda 2011-01-09 09:32:32 +00:00
parent 26cdb8ccad
commit 2d6203bd21
1 changed files with 1 additions and 1 deletions

View File

@ -4168,7 +4168,7 @@ void Renderer::renderProgressBar(int size, int x, int y, Font2D *font, int custo
string renderText = intToStr(static_cast<int>(size)) + "%";
if(customWidth > 0) {
if(size > 0) {
currentSize = customWidth * (size / 100);
currentSize = (int)((double)customWidth * ((double)size / 100.0));
}
maxSize = customWidth;
}