diff options
author | Chris Apers | 2007-12-12 22:11:19 +0000 |
---|---|---|
committer | Chris Apers | 2007-12-12 22:11:19 +0000 |
commit | 0f16772c4628d8f76eb866deb40b2bf802d95428 (patch) | |
tree | 7b336454ca62d593bede6a0cf4b08f9c4351fc62 /engines | |
parent | 6589dba7f56f9ee6d883574cae831abfd27a1b39 (diff) | |
download | scummvm-rg350-0f16772c4628d8f76eb866deb40b2bf802d95428.tar.gz scummvm-rg350-0f16772c4628d8f76eb866deb40b2bf802d95428.tar.bz2 scummvm-rg350-0f16772c4628d8f76eb866deb40b2bf802d95428.zip |
Workaround for bug #1738485
svn-id: r29840
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/icons.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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; |