killed a bug in fimg_clear !

This commit is contained in:
tth
2021-04-03 05:21:17 +02:00
parent 7c314c73ce
commit 0a92028c56
2 changed files with 4 additions and 3 deletions

View File

@@ -79,8 +79,7 @@ if( ! fimg_type_is_valid(head->type) ) {
}
printf(" type %d %s\n", head->type, fimg_str_type(head->type));
printf(" dims %d x %d\n",
head->width, head->height);
printf(" dims %d x %d\n", head->width, head->height);
printf(" fval/count %f %d\n", head->fval, head->count);
printf(" pixels@ %p %p %p %p\n",
@@ -249,6 +248,8 @@ if ( ! fimg_type_is_valid(fimg->type) ) {
size = fimg->width * fimg->height * sizeof(float);
memset(fimg->R, 0, size);
memset(fimg->G, 0, size);
memset(fimg->B, 0, size);
return 0;
}