[Scummvm-cvs-logs] SF.net SVN: scummvm: [29840] scummvm/trunk/engines/agos/icons.cpp
chrilith at users.sourceforge.net
chrilith at users.sourceforge.net
Wed Dec 12 23:11:19 CET 2007
Revision: 29840
http://scummvm.svn.sourceforge.net/scummvm/?rev=29840&view=rev
Author: chrilith
Date: 2007-12-12 14:11:19 -0800 (Wed, 12 Dec 2007)
Log Message:
-----------
Workaround for bug #1738485
Modified Paths:
--------------
scummvm/trunk/engines/agos/icons.cpp
Modified: scummvm/trunk/engines/agos/icons.cpp
===================================================================
--- scummvm/trunk/engines/agos/icons.cpp 2007-12-12 21:56:22 UTC (rev 29839)
+++ scummvm/trunk/engines/agos/icons.cpp 2007-12-12 22:11:19 UTC (rev 29840)
@@ -91,7 +91,15 @@
if (decompress) {
icon_pln = (byte *)calloc(width * height, 1);
-
+#ifdef PALMOS_MODE
+ /* FIXME: (PalmOS) This is the only way I found to workaround bug #1738485.
+ The compiler seems to fail to compile this piece of code at full optimization.
+ Reducing the optimization option make games crash earlier.
+ Don't ask me why... a simple printf at this location fix the problem.
+ Unfortunately debugging on PalmOS is a real pain :(
+ */
+ printf("");
+#endif
// Decode RLE planar icon data
i = src;
o = icon_pln;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list