new func: fimg_do_stripes(&fimg, 0);

This commit is contained in:
tTh
2022-09-19 11:58:30 +02:00
parent eedc9197db
commit 56073c0c80
3 changed files with 56 additions and 10 deletions

View File

@@ -154,8 +154,8 @@ fname = argv[optind];
if (verbosity>1) fprintf(stderr, "*** mkfimg *** %s %s *** pid %ld\n",
__DATE__, __TIME__, (long)getpid());
if (verbosity) fprintf(stderr, "making '%s' %dx%d, type %d\n",
fname, width, height, type);
if (verbosity) fprintf(stderr, "::: %s is making '%s' %dx%d, type %d\n",
argv[0], fname, width, height, type);
srand48(getpid() ^ time(NULL));
@@ -176,6 +176,7 @@ switch(type) {
case T_TPAT0: fimg_test_pattern(&fimg, 0, fvalue); break;
case T_MIRCOL1: fimg_mircol_1(&fimg, fvalue); break;
case T_BLOUP: fimg_draw_something(&fimg); break;
case T_STRIPES: fimg_do_stripes(&fimg, 0); break;
case -1: exit(1);
}
@@ -191,8 +192,9 @@ if (wrmdata) {
else {
foo = fimg_dump_to_file(&fimg, fname, 0);
}
if (foo) {
fprintf(stderr, "dump fimg to %s error -> %d\n", fname, foo);
fprintf(stderr, "*** dump fimg to %s error -> %d\n", fname, foo);
exit(1);
}