From 7211e06c8c31e6cd5d60079041ef0ae82fedf4f1 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Sat, 21 Dec 2024 10:10:42 +0100 Subject: [PATCH] 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. --- src/client/cl_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/cl_console.c b/src/client/cl_console.c index c6551a83..9c30524b 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -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++) {