forked from old/legacy-imlib2
small fix for the pnm loader. It didnt display the last two lines of a file.
Ive only corrected the 24bit RGB one. Ill do the others if raster doesnt have a more elegant fix for this :). SVN revision: 4070
This commit is contained in:
parent
365f241ba0
commit
b9aca90e0c
|
@ -512,7 +512,12 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
|| (y == (im->h - 1)))
|
||||
{
|
||||
l = y - pl;
|
||||
if (!progress(im, per, 0, (y - l), im->w, l))
|
||||
|
||||
/* fix off by one in case of the last line */
|
||||
if (y == (im->h -1))
|
||||
l++;
|
||||
|
||||
if (!progress(im, per, 0, pl, im->w, l))
|
||||
{
|
||||
if (data)
|
||||
free(data);
|
||||
|
|
Loading…
Reference in New Issue