aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/text16.h
diff options
context:
space:
mode:
authorMartin Kiewitz2010-09-09 10:52:17 +0000
committerMartin Kiewitz2010-09-09 10:52:17 +0000
commit9c67db6b0d86b24e16d08c0dd53ec4e2d6b253f6 (patch)
treefc27a2d3dbe83a4150af4bdaa8d69e76683f1b15 /engines/sci/graphics/text16.h
parent792c5b2303f58d00ab3d51c855bd0a0764d07ee4 (diff)
downloadscummvm-rg350-9c67db6b0d86b24e16d08c0dd53ec4e2d6b253f6.tar.gz
scummvm-rg350-9c67db6b0d86b24e16d08c0dd53ec4e2d6b253f6.tar.bz2
scummvm-rg350-9c67db6b0d86b24e16d08c0dd53ec4e2d6b253f6.zip
SCI: adding text code reference support
fixes glossary in pepper, bug #3040039 svn-id: r52651
Diffstat (limited to 'engines/sci/graphics/text16.h')
-rw-r--r--engines/sci/graphics/text16.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sci/graphics/text16.h b/engines/sci/graphics/text16.h
index 9b8b6d9f19..d84468ced2 100644
--- a/engines/sci/graphics/text16.h
+++ b/engines/sci/graphics/text16.h
@@ -32,6 +32,8 @@ namespace Sci {
#define SCI_TEXT16_ALIGNMENT_CENTER 1
#define SCI_TEXT16_ALIGNMENT_LEFT 0
+typedef Common::Array<Common::Rect> CodeRefRectArray;
+
class GfxPorts;
class GfxPaint16;
class GfxScreen;
@@ -48,7 +50,7 @@ public:
GfxFont *GetFont();
void SetFont(GuiResourceId fontId);
- int16 CodeProcessing(const char *&text, GuiResourceId orgFontId, int16 orgPenColor);
+ int16 CodeProcessing(const char *&text, GuiResourceId orgFontId, int16 orgPenColor, bool doingDrawing);
void ClearChar(int16 chr);
@@ -65,6 +67,8 @@ public:
GfxFont *_font;
+ reg_t allocAndFillReferenceRectArray();
+
void kernelTextSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight);
void kernelTextFonts(int argc, reg_t *argv);
void kernelTextColors(int argc, reg_t *argv);
@@ -83,6 +87,9 @@ private:
GuiResourceId *_codeFonts;
int _codeColorsCount;
uint16 *_codeColors;
+
+ Common::Rect _codeRefTempRect;
+ CodeRefRectArray _codeRefRects;
};
} // End of namespace Sci