From bfba03666b4c50238cc751682669f5175deb3f7e Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Wed, 10 Jul 2002 20:30:47 +0000 Subject: Implemented subtitles in SMUSH animations. Almost complete, expect: - correct colors, - correct split texts to multilines svn-id: r4511 --- smush.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'smush.h') diff --git a/smush.h b/smush.h index 8eeea152b6..6979188838 100644 --- a/smush.h +++ b/smush.h @@ -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]; -- cgit v1.2.3