mirror of https://github.com/GNOME/gimp.git
Merged from trunk:
2008-08-15 Sven Neumann <sven@gimp.org> Merged from trunk: * plug-ins/winicon/icosave.c: applied patch from Aurimas Juška that fixes an endianness issue (bug #529629). svn path=/branches/gimp-2-4/; revision=26575
This commit is contained in:
parent
e16567b7ce
commit
f1a6c52545
|
@ -1,3 +1,10 @@
|
|||
2008-08-15 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Merged from trunk:
|
||||
|
||||
* plug-ins/winicon/icosave.c: applied patch from Aurimas Juška
|
||||
that fixes an endianness issue (bug #529629).
|
||||
|
||||
2008-08-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Merged from trunk:
|
||||
|
|
|
@ -1082,6 +1082,14 @@ ico_save_image (const gchar *filename,
|
|||
entries[i].size = ftell (fp) - entries[i].offset;
|
||||
}
|
||||
|
||||
for (i = 0; i < info.num_icons; i++)
|
||||
{
|
||||
entries[i].planes = GUINT16_TO_LE (entries[i].planes);
|
||||
entries[i].bpp = GUINT16_TO_LE (entries[i].bpp);
|
||||
entries[i].size = GUINT32_TO_LE (entries[i].size);
|
||||
entries[i].offset = GUINT32_TO_LE (entries[i].offset);
|
||||
}
|
||||
|
||||
if (fseek (fp, sizeof(IcoFileHeader), SEEK_SET) < 0
|
||||
|| fwrite (entries, sizeof (IcoFileEntry), info.num_icons, fp) <= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue