forked from tTh/FloatImg
oups again
This commit is contained in:
parent
090a771971
commit
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user