cleaned up

This commit is contained in:
Connor Lane Smith 2010-08-03 17:18:24 +01:00
parent b7695fa98c
commit 1c91c2a99c

View File

@ -109,6 +109,7 @@ drawmenu(void) {
dc->x = 0; dc->x = 0;
dc->y = 0; dc->y = 0;
drawrect(dc, 0, 0, mw, mh, BG(dc, normcol)); drawrect(dc, 0, 0, mw, mh, BG(dc, normcol));
dc->h = dc->font.height + 2; dc->h = dc->font.height + 2;
dc->y = topbar ? 0 : mh - dc->h; dc->y = topbar ? 0 : mh - dc->h;
/* print prompt? */ /* print prompt? */
@ -524,9 +525,8 @@ main(int argc, char *argv[]) {
else if(i == argc-1) else if(i == argc-1)
usage(); usage();
/* double flags */ /* double flags */
else if(!strcmp(argv[i], "-l")) { else if(!strcmp(argv[i], "-l"))
lines = atoi(argv[++i]); lines = atoi(argv[++i]);
}
else if(!strcmp(argv[i], "-p")) else if(!strcmp(argv[i], "-p"))
prompt = argv[++i]; prompt = argv[++i];
else if(!strcmp(argv[i], "-fn")) else if(!strcmp(argv[i], "-fn"))