changeset 11089:c98af41d49f0 draft

(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
author peter1138 <peter1138@openttd.org>
date Mon, 09 Feb 2009 20:30:16 +0000
parents 43660f731f0e
children df23c4e04638
files src/network/network_content_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -116,7 +116,7 @@
 		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);