diff options
author | athrxx | 2015-11-14 19:52:26 +0100 |
---|---|---|
committer | athrxx | 2018-11-14 17:22:20 +0100 |
commit | e4e5e68f0dbec85bb28157e094a95ef33440a2ba (patch) | |
tree | d00173f96124da9712509234984219c2296ba756 /graphics/sjis.h | |
parent | 35126dba8a22aea3b0235ffbe5ae9df2ad248f7b (diff) | |
download | scummvm-rg350-e4e5e68f0dbec85bb28157e094a95ef33440a2ba.tar.gz scummvm-rg350-e4e5e68f0dbec85bb28157e094a95ef33440a2ba.tar.bz2 scummvm-rg350-e4e5e68f0dbec85bb28157e094a95ef33440a2ba.zip |
KYRA: implement SJIS features required for EOB II FM-Towns
- low res font drawing for intro and outro texts
- fat print mode for ingame texts
Diffstat (limited to 'graphics/sjis.h')
-rw-r--r-- | graphics/sjis.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/graphics/sjis.h b/graphics/sjis.h index 4c5b2797c5..2872471d24 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -91,6 +91,11 @@ public: virtual void setDrawingMode(DrawingMode mode) {} /** + * Enable fat character drawing if supported by the Font (used in EOB II FM-Towns). + */ + virtual void toggleFatPrint(bool enable) {} + + /** * Enable flipped character drawing if supported by the Font (e.g. in the MI1 circus scene after Guybrush gets shot out of the cannon). */ virtual void toggleFlippedMode(bool enable) {} @@ -147,6 +152,8 @@ public: virtual void toggleFlippedMode(bool enable); + virtual void toggleFatPrint(bool enable); + virtual uint getFontHeight() const; virtual uint getMaxFontWidth() const; @@ -165,9 +172,11 @@ private: const uint8 *flipCharacter(const uint8 *glyph, const int w) const; mutable uint8 _tempGlyph[32]; #endif + const uint8 *makeFatCharacter(const uint8 *glyph, const int w) const; + mutable uint8 _tempGlyph2[32]; protected: DrawingMode _drawMode; - bool _flippedMode; + bool _flippedMode, _fatPrint; int _fontWidth, _fontHeight; uint8 _bitPosNewLineMask; @@ -180,7 +189,8 @@ protected: kFeatOutline = 1 << 1, kFeatShadow = 1 << 2, kFeatFMTownsShadow = 1 << 3, - kFeatFlipped = 1 << 4 + kFeatFlipped = 1 << 4, + kFeatFatPrint = 1 << 5 }; virtual bool hasFeature(int feat) const = 0; |