forked from tTh/FloatImg
killed a bug in fimg_clear !
This commit is contained in:
parent
7c314c73ce
commit
0a92028c56
@ -4,7 +4,7 @@
|
||||
* http://la.buvette.org/photos/cumul
|
||||
*/
|
||||
|
||||
#define FIMG_VERSION 129
|
||||
#define FIMG_VERSION 130
|
||||
|
||||
/*
|
||||
* in memory descriptor
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user