forked from old/legacy-imlib2
pnm loader fix (Marcus Meissner, ticket 25).
SVN revision: 35796
This commit is contained in:
parent
5ccdcfd467
commit
cb588739ae
|
@ -348,7 +348,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
for (x = 0; x < w; x++)
|
||||
{
|
||||
*ptr2 =
|
||||
0xff000000 | (((ptr[0] * 255) / v) << 16) |
|
||||
0xff000000 | (((iptr[0] * 255) / v) << 16) |
|
||||
(((iptr[1] * 255) / v) << 8) | ((iptr[2] *
|
||||
255) / v);
|
||||
ptr2++;
|
||||
|
|
Loading…
Reference in New Issue