diff options
author | Paweł Kołodziejski | 2002-07-15 21:56:30 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-07-15 21:56:30 +0000 |
commit | eb3318e291386988eaba2ba1ed642d13a4e1c713 (patch) | |
tree | 81e595ab414897c939eb60eb2269ddf5a5d8cf32 | |
parent | 438bb248e0356f76c9cb800d050ae419ab5625ab (diff) | |
download | scummvm-rg350-eb3318e291386988eaba2ba1ed642d13a4e1c713.tar.gz scummvm-rg350-eb3318e291386988eaba2ba1ed642d13a4e1c713.tar.bz2 scummvm-rg350-eb3318e291386988eaba2ba1ed642d13a4e1c713.zip |
subtitles: some fixes
svn-id: r4558
-rw-r--r-- | insane.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/insane.cpp b/insane.cpp index 3e9786c863..664f999064 100644 --- a/insane.cpp +++ b/insane.cpp @@ -170,12 +170,11 @@ uint32 SmushPlayer::getFontHeight(uint8 c_font) offset += 8; if (READ_BE_UINT32(font + offset) == 'FOBJ') { t_offset = offset + 8; - offset += READ_BE_UINT32(font + offset + 4) + 8; } else return 0; } - return *(uint16*)(font + t_offset + 8); + return READ_LE_UINT16(font + t_offset + 8); } uint32 SmushPlayer::getCharWidth(uint8 c_font, byte txt) @@ -203,7 +202,7 @@ uint32 SmushPlayer::getCharWidth(uint8 c_font, byte txt) else return 0; } - return *(uint16*)(font + t_offset + 6); + return READ_LE_UINT16(font + t_offset + 6); } void SmushPlayer::drawStringTRES(uint32 x, uint32 y, byte * txt) @@ -254,7 +253,6 @@ void SmushPlayer::drawStringTRES(uint32 x, uint32 y, byte * txt) else { y = 0; - printf ("out of screen y\n"); } continue; } @@ -282,7 +280,6 @@ void SmushPlayer::drawStringTRES(uint32 x, uint32 y, byte * txt) } else { y = 0; - printf ("out of screen y\n"); } } } |