popup: use system fonts exclusively
This commit is contained in:
8
main.c
8
main.c
@@ -5,13 +5,11 @@ Channel *drawc;
|
||||
Channel *keyc;
|
||||
Channel *dictreqc;
|
||||
Channel *dictresc;
|
||||
char **fontfiles;
|
||||
int nfontfiles;
|
||||
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
fprint(2, "usage: strans mapdir fontfile [fontfile ...]\n");
|
||||
fprint(2, "usage: strans mapdir\n");
|
||||
threadexitsall("usage");
|
||||
}
|
||||
|
||||
@@ -51,11 +49,9 @@ erealloc(void *p, ulong n)
|
||||
void
|
||||
threadmain(int argc, char **argv)
|
||||
{
|
||||
if(argc < 3 || argc > Maxfonts + 2)
|
||||
if(argc != 2)
|
||||
usage();
|
||||
|
||||
fontfiles = argv + 2;
|
||||
nfontfiles = argc - 2;
|
||||
drawc = chancreate(sizeof(Drawcmd), 4);
|
||||
keyc = chancreate(sizeof(Keyreq), 0);
|
||||
dictreqc = chancreate(sizeof(Dictreq), 4);
|
||||
|
||||
Reference in New Issue
Block a user