[fpc-devel] Patch for fpreadpnm

Colin Western mftq75 at dsl.pipex.com
Sat Jun 11 15:02:39 CEST 2005

The attach fixes two problems I found reading pnm files:
- RGB files were not being read correctly
- byte values of 255 were overflowing.
I have adjusted the colour scaling to be compatible with what happens 
for .BMP files. I have not been able to do much testing, as I am short 
of files to test, but it works for the file I originally had problems 
with at least.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pnm.diff
Type: text/x-patch
Size: 3268 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050611/fb00ee4d/attachment.bin>

More information about the fpc-devel mailing list