mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
diff noise. blech.
This commit is contained in:
parent
0c7cc403b8
commit
d55f9e4a4d
2 changed files with 17 additions and 17 deletions
|
@ -521,22 +521,22 @@ Con_DrawDownload (int lines)
|
||||||
char *text;
|
char *text;
|
||||||
char dlbar[1024];
|
char dlbar[1024];
|
||||||
|
|
||||||
if (!cls.download)
|
if (!cls.download)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
text = COM_SkipPath(cls.downloadname);
|
text = COM_SkipPath(cls.downloadname);
|
||||||
|
|
||||||
x = con_linewidth - ((con_linewidth * 7) / 40);
|
x = con_linewidth - ((con_linewidth * 7) / 40);
|
||||||
y = x - strlen (text) - 8;
|
y = x - strlen (text) - 8;
|
||||||
i = con_linewidth / 3;
|
i = con_linewidth / 3;
|
||||||
if (strlen (text) > i) {
|
if (strlen (text) > i) {
|
||||||
y = x - i - 11;
|
y = x - i - 11;
|
||||||
strncpy (dlbar, text, i);
|
strncpy (dlbar, text, i);
|
||||||
dlbar[i] = 0;
|
dlbar[i] = 0;
|
||||||
strncat (dlbar, "...", sizeof (dlbar) - strlen (dlbar));
|
strncat (dlbar, "...", sizeof (dlbar) - strlen (dlbar));
|
||||||
} else
|
} else
|
||||||
strncpy (dlbar, text, sizeof (dlbar));
|
strncpy (dlbar, text, sizeof (dlbar));
|
||||||
strncat (dlbar, ": ", sizeof (dlbar) - strlen (dlbar));
|
strncat (dlbar, ": ", sizeof (dlbar) - strlen (dlbar));
|
||||||
i = strlen (dlbar);
|
i = strlen (dlbar);
|
||||||
dlbar[i++] = '\x80';
|
dlbar[i++] = '\x80';
|
||||||
// where's the dot go?
|
// where's the dot go?
|
||||||
|
@ -552,7 +552,7 @@ Con_DrawDownload (int lines)
|
||||||
dlbar[i++] = '\x82';
|
dlbar[i++] = '\x82';
|
||||||
dlbar[i] = 0;
|
dlbar[i] = 0;
|
||||||
|
|
||||||
snprintf (dlbar + strlen (dlbar), sizeof (dlbar) - strlen (dlbar),
|
snprintf (dlbar + strlen (dlbar), sizeof (dlbar) - strlen (dlbar),
|
||||||
" %02d%%", cls.downloadpercent);
|
" %02d%%", cls.downloadpercent);
|
||||||
// draw it
|
// draw it
|
||||||
y = lines - 22 + 8;
|
y = lines - 22 + 8;
|
||||||
|
|
|
@ -544,7 +544,7 @@ Con_DrawDownload (int lines)
|
||||||
n = 0;
|
n = 0;
|
||||||
else
|
else
|
||||||
n = y * cls.downloadpercent / 100;
|
n = y * cls.downloadpercent / 100;
|
||||||
for (j = 0; j < y; j++)
|
for (j = 0; j < y; j++)
|
||||||
if (j == n)
|
if (j == n)
|
||||||
dlbar[i++] = '\x83';
|
dlbar[i++] = '\x83';
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue