diff options
author | BLooperZ | 2019-11-08 00:40:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-18 02:02:14 +0100 |
commit | 32b9b7226ca35eb2b47ff0a030472f78640101cd (patch) | |
tree | 779036d21b2881ddf6a1e2612db292d637d14708 /engines/toon/subtitles.h | |
parent | e87e18052c517737c7327ada531fb737fafa5ef4 (diff) | |
download | scummvm-rg350-32b9b7226ca35eb2b47ff0a030472f78640101cd.tar.gz scummvm-rg350-32b9b7226ca35eb2b47ff0a030472f78640101cd.tar.bz2 scummvm-rg350-32b9b7226ca35eb2b47ff0a030472f78640101cd.zip |
TOON: plaintext format for subtitles
Diffstat (limited to 'engines/toon/subtitles.h')
-rw-r--r-- | engines/toon/subtitles.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/engines/toon/subtitles.h b/engines/toon/subtitles.h index 41b12638a1..133964c522 100644 --- a/engines/toon/subtitles.h +++ b/engines/toon/subtitles.h @@ -28,10 +28,16 @@ namespace Toon { -struct TimeWindow { - uint32 fstart; - uint32 fend; - uint32 foffset; +class TimeWindow { +public: + uint16 _startFrame; + uint16 _endFrame; + Common::String _text; + TimeWindow(int startFrame, int endFrame, const Common::String &text) { + _startFrame = startFrame; + _endFrame = endFrame; + _text = text; + } }; class SubtitleRenderer { @@ -45,12 +51,7 @@ protected: ToonEngine *_vm; Graphics::Surface *_subSurface; bool _hasSubtitles; - char *_lines[384]; - TimeWindow _tw[384]; - uint8 *_fileData; - uint16 _index; - uint16 _last; - char *_currentLine; + Common::List<TimeWindow> _tw; }; } // End of namespace Toon |