aboutsummaryrefslogtreecommitdiff
path: root/smush.h
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-07-10 20:30:47 +0000
committerPaweł Kołodziejski2002-07-10 20:30:47 +0000
commitbfba03666b4c50238cc751682669f5175deb3f7e (patch)
treedbf8165e04ed76f5aa0ba072c8fbfc1d6bb64ee8 /smush.h
parent04921d3d9bb6fa7ed71abca423030c855a226bd9 (diff)
downloadscummvm-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.h13
1 files changed, 13 insertions, 0 deletions
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];