Re: TGA loader
- From: Havoc Pennington <hp redhat com>
- To: "Matthias Clasen" <matthiasc poet de>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: TGA loader
- Date: 22 Aug 2001 10:32:30 -0400
"Matthias Clasen" <matthiasc poet de> writes:
> I recently committed the tga loader by Nicola Girardi.
>
> Now I found that after that commit, the ico test in test-loaders fails.
> The reason is that the patch moved the ico entry in the file_formats
> to the very bottom with the consequence that all ico's will now be
> treated as wbmps, since pixbuf_check_wbmp is a joke. It treats
> everything starting with a 0 byte as wbmp.
>
> I think these check functions need to be much more restrictive to
> be useful for guessing. Any pointers for file format specs so that
> I could look into this ?
IIRC wbmp can't be guessed, it has no file magic. Maybe check_wbmp
should simply return FALSE in all cases; you should have to do the
loader_with_type if you want to load wbmp.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]