aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/text16.h
diff options
context:
space:
mode:
authorMartin Kiewitz2014-11-04 22:01:21 +0100
committerMartin Kiewitz2014-11-04 22:01:21 +0100
commiteff78c442474185ecb1bde59bfc54c276178c480 (patch)
tree583021de254265f55a71e057cb5441973a3a4d48 /engines/sci/graphics/text16.h
parentad8dbd364203a463fbae935b751cf96f76c38cf5 (diff)
downloadscummvm-rg350-eff78c442474185ecb1bde59bfc54c276178c480.tar.gz
scummvm-rg350-eff78c442474185ecb1bde59bfc54c276178c480.tar.bz2
scummvm-rg350-eff78c442474185ecb1bde59bfc54c276178c480.zip
SCI: fix Japanese Space Quest 4 (intro + buttons)
At least SQ4 uses #j text prefix as signal for the interpreter to not use the PC9801 hires font, but to use the internal low res font instead
Diffstat (limited to 'engines/sci/graphics/text16.h')
-rw-r--r--engines/sci/graphics/text16.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/sci/graphics/text16.h b/engines/sci/graphics/text16.h
index 715891be44..2724d97347 100644
--- a/engines/sci/graphics/text16.h
+++ b/engines/sci/graphics/text16.h
@@ -56,10 +56,15 @@ public:
void StringWidth(const char *str, GuiResourceId orgFontId, int16 &textWidth, int16 &textHeight);
void ShowString(const char *str, GuiResourceId orgFontId, int16 orgPenColor);
void DrawString(const char *str, GuiResourceId orgFontId, int16 orgPenColor);
- int16 Size(Common::Rect &rect, const char *text, GuiResourceId fontId, int16 maxWidth);
+ int16 Size(Common::Rect &rect, const char *text, uint16 textLanguage, GuiResourceId fontId, int16 maxWidth);
void Draw(const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 orgPenColor);
void Show(const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 orgPenColor);
- void Box(const char *text, bool show, const Common::Rect &rect, TextAlignment alignment, GuiResourceId fontId);
+ void Box(const char *text, uint16 languageSplitter, bool show, const Common::Rect &rect, TextAlignment alignment, GuiResourceId fontId);
+
+ void Box(const char *text, bool show, const Common::Rect &rect, TextAlignment alignment, GuiResourceId fontId) {
+ Box(text, 0, show, rect, alignment, fontId);
+ }
+
void DrawString(const char *text);
void DrawStatus(const char *text);
@@ -67,13 +72,13 @@ public:
reg_t allocAndFillReferenceRectArray();
- void kernelTextSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight);
+ void kernelTextSize(const char *text, uint16 textLanguage, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight);
void kernelTextFonts(int argc, reg_t *argv);
void kernelTextColors(int argc, reg_t *argv);
private:
void init();
- bool SwitchToFont900OnSjis(const char *text);
+ bool SwitchToFont900OnSjis(const char *text, uint16 languageSplitter);
GfxCache *_cache;
GfxPorts *_ports;