Skip to content
Snippets Groups Projects
Commit 7ceed618 authored by deuce's avatar deuce
Browse files

The file header box attribute configured in ctrl/attr.cfg was only used to

draw the top line and first left vertical row in a file list box.  The rest
of the box was drawn in whatever attribute text.dat left it in.
parent 62f255fa
No related branches found
No related tags found
No related merge requests found
......@@ -250,22 +250,25 @@ int sbbs_t::listfiles(uint dirnum, const char *filespec, int tofile, long mode)
bputs(hdr);
for(c=bstrlen(hdr);c<d;c++)
outchar(' ');
attr(cfg.color[clr_filelsthdrbox]);
bputs("\r\n ");
sprintf(hdr,text[BoxHdrDir],j+1,cfg.dir[dirnum]->lname);
bputs(hdr);
for(c=bstrlen(hdr);c<d;c++)
outchar(' ');
attr(cfg.color[clr_filelsthdrbox]);
bputs("\r\n ");
sprintf(hdr,text[BoxHdrFiles],l/F_IXBSIZE);
bputs(hdr);
for(c=bstrlen(hdr);c<d;c++)
outchar(' ');
attr(cfg.color[clr_filelsthdrbox]);
bputs("\r\n");
for(c=0;c<d;c++)
outchar('');
bputs("\r\n");
}
}
}
}
}
else { /* short header */
if(tofile) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment