0
0
Fork 0
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 .
This commit is contained in:
Yamagi 2024-12-21 10:10:42 +01:00
parent 290c9ecabe
commit 7211e06c8c

View file

@ -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++)
{