From cd0b38d234c7aa9f9fbfa32243e6cd66f308484a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 9 Feb 2009 20:30:16 +0000 Subject: [PATCH] (svn r15433) -Fix (r15126): Content download progress bar was not centered properly. --- src/network/network_content_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 0be1d2471b..54d190f205 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);