diff options
author | Paweł Kołodziejski | 2002-07-10 20:30:47 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-07-10 20:30:47 +0000 |
commit | bfba03666b4c50238cc751682669f5175deb3f7e (patch) | |
tree | dbf8165e04ed76f5aa0ba072c8fbfc1d6bb64ee8 /smush.h | |
parent | 04921d3d9bb6fa7ed71abca423030c855a226bd9 (diff) | |
download | scummvm-rg350-bfba03666b4c50238cc751682669f5175deb3f7e.tar.gz scummvm-rg350-bfba03666b4c50238cc751682669f5175deb3f7e.tar.bz2 scummvm-rg350-bfba03666b4c50238cc751682669f5175deb3f7e.zip |
Implemented subtitles in SMUSH animations.
Almost complete, expect:
- correct colors,
- correct split texts to multilines
svn-id: r4511
Diffstat (limited to 'smush.h')
-rw-r--r-- | smush.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -20,6 +20,8 @@ * */ +#define SP_MAX_FONTS 5 + struct PersistentCodecData37 { byte *deltaBuf; byte *deltaBufs[2]; @@ -59,12 +61,23 @@ struct SmushPlayer { byte *_deltaBuf; int _deltaBufSize; + byte * _fonts[SP_MAX_FONTS]; + byte * _buffer_tres; + uint8 _c_font; + uint8 _c_color; + PersistentCodecData37 pcd37; byte _fluPalette[768]; uint16 _fluPalMul129[768]; uint16 _fluPalWords[768]; + byte * loadTres(); + void loadFonts(); + byte * getStringTRES(int32 number); + void drawStringTRES(uint32 x, uint32 y, uint8 color, byte * txt); + void drawCharTRES(uint32 * x, uint32 y, uint32 c_line, uint8 color, uint8 txt); + /* PSAD: Full Throttle audio */ uint32 _saudSize[8], _saudSubSize[8]; uint16 _psadTrk[8], _strkRate[8]; |