Add support for 512x512 Leopard icons, using the ic09 iconType

2007-11-20  Bastien Nocera  <hadess@hadess.net>

	* io-icns.c: (load_resources): Add support for 512x512 Leopard
	icons, using the ic09 iconType


svn path=/trunk/; revision=19009
This commit is contained in:
Bastien Nocera 2007-11-20 11:15:12 +00:00 committed by Bastien Nocera
parent a1dcb1ab81
commit 9e0b0194ed
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-20 Bastien Nocera <hadess@hadess.net>
* io-icns.c: (load_resources): Add support for 512x512 Leopard
icons, using the ic09 iconType
2007-11-20 Bastien Nocera <hadess@hadess.net>
* Makefile.am:

View File

@ -88,7 +88,9 @@ load_resources (unsigned size, IN gpointer data, gsize datalen,
switch (size)
{
case 256:
if (memcmp (header->id, "ic08", 4) == 0) /* 256x256 icon */
case 512:
if (memcmp (header->id, "ic08", 4) == 0 /* 256x256 icon */
|| memcmp (header->id, "ic09", 4) == 0) /* 512x512 icon */
{
*picture = (gpointer) (current + sizeof (IcnsBlockHeader));
*plen = blocklen - sizeof (IcnsBlockHeader);