mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
a1dcb1ab81
commit
9e0b0194ed
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user