diff options
author | peter1138 <peter1138@openttd.org> | 2009-02-09 20:30:16 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-02-09 20:30:16 +0000 |
commit | cd0b38d234c7aa9f9fbfa32243e6cd66f308484a (patch) | |
tree | 713226700bcb4ca2b50ed7e10802d74e9f972101 /src/network | |
parent | 8c36a96920f80fe95d006dcf42bc9c472eac4167 (diff) | |
download | openttd-cd0b38d234c7aa9f9fbfa32243e6cd66f308484a.tar.xz |
(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 0be1d2471..54d190f20 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -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); |