mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-13 06:12:51 +00:00
Fix drawing of UDP download progress bar with r_consolescale
> 1
.
When calculating the Y position of the UDP download progress bar the scale factor must be taken into account. Otherwise the bar will be drawn outside the visible area of the console. This was missed when scaling was first implemented years ago and broken since then. Reported by @SiemensSchuckert, closes #1172.
This commit is contained in:
parent
290c9ecabe
commit
7211e06c8c
1 changed files with 1 additions and 1 deletions
|
@ -790,7 +790,7 @@ Con_DrawConsole(float frac)
|
|||
sprintf(dlbar + strlen(dlbar), " %02d%%", cls.downloadpercent);
|
||||
|
||||
/* draw it */
|
||||
y = con.vislines - 12;
|
||||
y = (lines - 12 * scale) / scale;
|
||||
|
||||
for (i = 0; i < strlen(dlbar); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue