(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.

This commit is contained in:
peter1138 2009-02-09 20:30:16 +00:00
parent 8c36a96920
commit cd0b38d234
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public:
this->DrawWidgets();
/* Draw nice progress bar :) */
DrawFrameRect(20, 18, (int)((this->width - 20) * this->downloaded_bytes / this->total_bytes), 28, COLOUR_MAUVE, FR_NONE);
DrawFrameRect(20, 18, 20 + (int)((this->width - 40) * this->downloaded_bytes / this->total_bytes), 28, COLOUR_MAUVE, FR_NONE);
SetDParam(0, this->downloaded_bytes);
SetDParam(1, this->total_bytes);