handle progress callback for saving in png loader..

SVN revision: 1114
This commit is contained in:
Carsten Haitzler 1999-11-01 18:10:30 +00:00
parent 9793c8f93b
commit 665151aff4
1 changed files with 7 additions and 1 deletions

View File

@ -270,6 +270,13 @@ save (ImlibImage *im,
row_ptr = (png_bytep)data;
}
png_write_rows(png_ptr, &row_ptr, 1);
if (progress)
{
char per;
per = (char)((100 * y) / im->h);
progress(im, per, 0, y, im->w, 1);
}
ptr += im->w;
}
if (data)
@ -279,7 +286,6 @@ save (ImlibImage *im,
fclose(f);
return 1;
progress = NULL;
}
/* fills the ImlibLoader struct with a strign array of format file */