OK look for the error message in the source code: "Unsupported image
format".
It's in src/SDL_image-1.2.5/IMG.c following a failure to find a match
in a struct called "supported".
The first attempt at matching relies on magic numbers which clearly
isn't working.
However a fail to match on magic number should fall through to
attempting to match on the file suffix. The table in the declaration
of suffix includes "PNG" at line 43. That's right - it's in UPPER
CASE. In fact all the suffixes given are in UPPER CASE. That's UPPER
CASE ONLY. And, of course, the icon file names are in lower case. So
having failed with the magic number match it fails again with the
suffix match.
The ideal would be to fix the magic number problem. The quick & dirty
fix is to add
{ "png", IMG_isPNG, IMG_LoadPNG_RW },
at line 44 and this does indeed work.
Clearly if this bug affected all builds then it would have been picked
up as soon as it was introduced. As the original suffix match can't
work on any OS which has the files in lower case it must be that on
other builds the magic number match works correctly. On checking I
find that my /usr/share/file/magic.mgc appears to have an entry for png
and, in fact running file on the directory of icons identifies them all
correctly as png.
The explanation must be that there's a problem between 32 bit & 64 bit
code.
Will the devs pick this up and fix it?
--
igoddard
------------------------------------------------------------------------
igoddard's Profile: http://forums.slimdevices.com/member.php?userid=52055
View this thread: http://forums.slimdevices.com/showthread.php?t=92126
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta