Compare commits
No commits in common. "681dfd69dc336e7820d2c19a9ac9ddb79765a80a" and "090a7719713ebe542d8ed0838b4dc367eec4e0c2" have entirely different histories.
681dfd69dc
...
090a771971
@ -39,7 +39,7 @@ if (foo) {
|
||||
outptr = &fimg; /* safe default value */
|
||||
|
||||
if (to_gray) {
|
||||
if (verbosity) puts("converting to gray...");
|
||||
puts("converting to gray...");
|
||||
foo = fimg_create(&gris, fimg.width, fimg.height, FIMG_TYPE_GRAY);
|
||||
if (foo) {
|
||||
fprintf(stderr, "err create gray %d\n", foo);
|
||||
@ -91,7 +91,7 @@ if (argc == 1) {
|
||||
|
||||
while ((opt = getopt(argc, argv, "ghv")) != -1) {
|
||||
switch(opt) {
|
||||
case 'g': to_gray = 1; break;
|
||||
case 'g': to_gray = 1;
|
||||
case 'v': verbosity++; break;
|
||||
case 'h': help(1); exit(1);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ int foo;
|
||||
|
||||
if (3 != argc) {
|
||||
fimg_print_version(1);
|
||||
fprintf(stderr, "usage:\n\t%s foo.png bar.fimg\n", argv[0]);
|
||||
fprintf(stderr, "usage:\n\t%s foo.png bar.png\n", argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user