]> Pileus Git - ~andy/gtk/commitdiff
Add support for 512x512 Leopard icons, using the ic09 iconType
authorBastien Nocera <hadess@hadess.net>
Tue, 20 Nov 2007 11:15:12 +0000 (11:15 +0000)
committerBastien Nocera <hadess@src.gnome.org>
Tue, 20 Nov 2007 11:15:12 +0000 (11:15 +0000)
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

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-icns.c

index dee96b8e76723062e1e05af6db9b74a47f8854a5..2ed7700092f00836c718e7ac10c76946351a6823 100644 (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:
index 98ad97dd50e6e8cd05d088629333a08c2578cbd8..62a85233456c87803410d028d41be9a2c8eb41a1 100644 (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);