diff options
author | Oliver Kiehl | 2003-09-12 18:52:53 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-09-12 18:52:53 +0000 |
commit | 9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347 (patch) | |
tree | f25d78715f0ec40cf2ec5be5ead7e73ca88a22bf /sword2/maketext.cpp | |
parent | c805e260a9a871db17866c2957ccc9042d46763c (diff) | |
download | scummvm-rg350-9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347.tar.gz scummvm-rg350-9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347.tar.bz2 scummvm-rg350-9dc282f1d59c75f4aa0cbda6e85efd6ea30dc347.zip |
endian fixes
svn-id: r10192
Diffstat (limited to 'sword2/maketext.cpp')
-rw-r--r-- | sword2/maketext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sword2/maketext.cpp b/sword2/maketext.cpp index 4f22632eab..392bdb9cbd 100644 --- a/sword2/maketext.cpp +++ b/sword2/maketext.cpp @@ -367,6 +367,13 @@ _frameHeader* FindChar( uint8 ch, uint8 *charSet ) if( (ch<FIRST_CHAR) ) // if 'ch' out of range // if( (ch<FIRST_CHAR) || (ch>LAST_CHAR) ) // if 'ch' out of range ch = DUD; // then print the 'dud' character (chequered flag) +// FIXME: HACK!!!! remapping ' and ! because they cause FetchFrameHeader to crash.... +#ifdef MACOSX + if (ch == '\'') + ch = ' '; + if (ch == '!') + ch = ' '; +#endif // address of char = address of charSet + offset to char //return (charSet + *(int32 *)(charSet + sizeof(_header) + 4 + 4*(ch - FIRST_CHAR))); |