add -W to specify window size.
various other little fixes.
This commit is contained in:
parent
3d72637f9b
commit
be36ff6885
36 changed files with 332 additions and 304 deletions
|
|
@ -41,6 +41,13 @@ eresized(int new)
|
|||
flushimage(display, 1);
|
||||
}
|
||||
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
fprint(2, "usage: ppm -39cdektv -W winsize [file.ppm ...]\n");
|
||||
exits("usage");
|
||||
}
|
||||
|
||||
void
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
|
@ -48,6 +55,9 @@ main(int argc, char *argv[])
|
|||
char *err;
|
||||
|
||||
ARGBEGIN{
|
||||
case 'W':
|
||||
winsize = EARGF(usage());
|
||||
break;
|
||||
case '3': /* produce encoded, compressed, three-color bitmap file; no display by default */
|
||||
threeflag++;
|
||||
/* fall through */
|
||||
|
|
@ -87,8 +97,7 @@ main(int argc, char *argv[])
|
|||
outchan = CMAP8;
|
||||
break;
|
||||
default:
|
||||
fprint(2, "usage: ppm -39cdektv [file.ppm ...]\n");
|
||||
exits("usage");
|
||||
usage();
|
||||
}ARGEND;
|
||||
|
||||
err = nil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue