From 0f16772c4628d8f76eb866deb40b2bf802d95428 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Wed, 12 Dec 2007 22:11:19 +0000 Subject: Workaround for bug #1738485 svn-id: r29840 --- engines/agos/icons.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp index f38828f086..48272083a2 100644 --- a/engines/agos/icons.cpp +++ b/engines/agos/icons.cpp @@ -91,7 +91,15 @@ static void decompressIconPlanar(byte *dst, byte *src, uint width, uint height, 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; -- cgit v1.2.3