mirror of https://github.com/OpenTTD/OpenTTD
(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
parent
8c36a96920
commit
cd0b38d234
|
@ -116,7 +116,7 @@ public:
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
|
|
||||||
/* Draw nice progress bar :) */
|
/* 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(0, this->downloaded_bytes);
|
||||||
SetDParam(1, this->total_bytes);
|
SetDParam(1, this->total_bytes);
|
||||||
|
|
Loading…
Reference in New Issue