mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +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 dlbar[1024];
|
||||
|
||||
if (!cls.download)
|
||||
return;
|
||||
if (!cls.download)
|
||||
return;
|
||||
|
||||
text = COM_SkipPath(cls.downloadname);
|
||||
|
||||
x = con_linewidth - ((con_linewidth * 7) / 40);
|
||||
y = x - strlen (text) - 8;
|
||||
i = con_linewidth / 3;
|
||||
if (strlen (text) > i) {
|
||||
y = x - i - 11;
|
||||
strncpy (dlbar, text, i);
|
||||
dlbar[i] = 0;
|
||||
strncat (dlbar, "...", sizeof (dlbar) - strlen (dlbar));
|
||||
} else
|
||||
strncpy (dlbar, text, sizeof (dlbar));
|
||||
strncat (dlbar, ": ", sizeof (dlbar) - strlen (dlbar));
|
||||
text = COM_SkipPath(cls.downloadname);
|
||||
|
||||
x = con_linewidth - ((con_linewidth * 7) / 40);
|
||||
y = x - strlen (text) - 8;
|
||||
i = con_linewidth / 3;
|
||||
if (strlen (text) > i) {
|
||||
y = x - i - 11;
|
||||
strncpy (dlbar, text, i);
|
||||
dlbar[i] = 0;
|
||||
strncat (dlbar, "...", sizeof (dlbar) - strlen (dlbar));
|
||||
} else
|
||||
strncpy (dlbar, text, sizeof (dlbar));
|
||||
strncat (dlbar, ": ", sizeof (dlbar) - strlen (dlbar));
|
||||
i = strlen (dlbar);
|
||||
dlbar[i++] = '\x80';
|
||||
// where's the dot go?
|
||||
|
@ -552,7 +552,7 @@ Con_DrawDownload (int lines)
|
|||
dlbar[i++] = '\x82';
|
||||
dlbar[i] = 0;
|
||||
|
||||
snprintf (dlbar + strlen (dlbar), sizeof (dlbar) - strlen (dlbar),
|
||||
snprintf (dlbar + strlen (dlbar), sizeof (dlbar) - strlen (dlbar),
|
||||
" %02d%%", cls.downloadpercent);
|
||||
// draw it
|
||||
y = lines - 22 + 8;
|
||||
|
|
|
@ -544,7 +544,7 @@ Con_DrawDownload (int lines)
|
|||
n = 0;
|
||||
else
|
||||
n = y * cls.downloadpercent / 100;
|
||||
for (j = 0; j < y; j++)
|
||||
for (j = 0; j < y; j++)
|
||||
if (j == n)
|
||||
dlbar[i++] = '\x83';
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue