From e4e5e68f0dbec85bb28157e094a95ef33440a2ba Mon Sep 17 00:00:00 2001 From: athrxx Date: Sat, 14 Nov 2015 19:52:26 +0100 Subject: 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 --- graphics/sjis.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'graphics/sjis.h') diff --git a/graphics/sjis.h b/graphics/sjis.h index 4c5b2797c5..2872471d24 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -90,6 +90,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). */ @@ -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; -- cgit v1.2.3