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