mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user