Changeset - r11089:babc36cbd948
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2009-02-09 20:30:16
peter1138@openttd.org
(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_content_gui.cpp
Show inline comments
 
@@ -113,13 +113,13 @@ public:
 
			this->widget[NCDSWW_CANCELOK].data = STR_012F_OK;
 
		}
 

	
 
		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);
 
		SetDParam(2, this->downloaded_bytes * 100 / this->total_bytes);
 
		DrawStringCentered(this->width / 2, 35, STR_CONTENT_DOWNLOAD_PROGRESS_SIZE, TC_GREY);
 

	
0 comments (0 inline, 0 general)