gimp r26575 - in branches/gimp-2-4: . plug-ins/winicon
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26575 - in branches/gimp-2-4: . plug-ins/winicon
- Date: Fri, 15 Aug 2008 17:52:24 +0000 (UTC)
Author: neo
Date: Fri Aug 15 17:52:23 2008
New Revision: 26575
URL: http://svn.gnome.org/viewvc/gimp?rev=26575&view=rev
Log:
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).
Modified:
branches/gimp-2-4/ChangeLog
branches/gimp-2-4/plug-ins/winicon/icosave.c
Modified: branches/gimp-2-4/plug-ins/winicon/icosave.c
==============================================================================
--- branches/gimp-2-4/plug-ins/winicon/icosave.c (original)
+++ branches/gimp-2-4/plug-ins/winicon/icosave.c Fri Aug 15 17:52:23 2008
@@ -1082,6 +1082,14 @@
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]