From 9e0b0194ed7ded02d3093daaa6da7e7958eb4127 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 20 Nov 2007 11:15:12 +0000 Subject: Add support for 512x512 Leopard icons, using the ic09 iconType 2007-11-20 Bastien Nocera * io-icns.c: (load_resources): Add support for 512x512 Leopard icons, using the ic09 iconType svn path=/trunk/; revision=19009 --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-icns.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index dee96b8e76..2ed7700092 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2007-11-20 Bastien Nocera + + * io-icns.c: (load_resources): Add support for 512x512 Leopard + icons, using the ic09 iconType + 2007-11-20 Bastien Nocera * Makefile.am: diff --git a/gdk-pixbuf/io-icns.c b/gdk-pixbuf/io-icns.c index 98ad97dd50..62a8523345 100644 --- a/gdk-pixbuf/io-icns.c +++ b/gdk-pixbuf/io-icns.c @@ -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); -- cgit v1.2.1