diff options
author | Thanasis Antoniou | 2018-06-18 14:10:00 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-12-25 12:35:52 +0100 |
commit | a86625700fe69ff27e0f704a41307cdd2135a6a8 (patch) | |
tree | 3e25f052da3d0cc4bf18d21960cedade06a19911 /engines/bladerunner/font.h | |
parent | 9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a (diff) | |
download | scummvm-rg350-a86625700fe69ff27e0f704a41307cdd2135a6a8.tar.gz scummvm-rg350-a86625700fe69ff27e0f704a41307cdd2135a6a8.tar.bz2 scummvm-rg350-a86625700fe69ff27e0f704a41307cdd2135a6a8.zip |
BLADERUNNER: Added subtitles support and checkbox in KIA
Diffstat (limited to 'engines/bladerunner/font.h')
-rw-r--r-- | engines/bladerunner/font.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/bladerunner/font.h b/engines/bladerunner/font.h index 4af25468c6..4d43aaa875 100644 --- a/engines/bladerunner/font.h +++ b/engines/bladerunner/font.h @@ -23,6 +23,10 @@ #ifndef BLADERUNNER_FONT_H #define BLADERUNNER_FONT_H +#include "bladerunner/bladerunner.h" // needed for definition of Common::ScopedPtr (subtitles font external font file support) -- and for the subtitles relevant macro defines +#if SUBTITLES_SUPPORT +#include "common/util.h" +#endif #include "common/str.h" namespace Graphics { @@ -61,11 +65,19 @@ public: Font(BladeRunnerEngine *vm); ~Font(); + #if SUBTITLES_SUPPORT + #if SUBTITLES_EXTERNAL_FONT + bool openFromStream(Common::ScopedPtr<Common::SeekableReadStream> &s, int screenWidth, int screenHeight, int spacing1, int spacing2, uint16 color); + #endif // SUBTITLES_EXTERNAL_FONT + #endif // SUBTITLES_SUPPORT bool open(const Common::String &fileName, int screenWidth, int screenHeight, int spacing1, int spacing2, uint16 color); void close(); void setSpacing(int spacing1, int spacing2); void setColor(uint16 color); + #if SUBTITLES_SUPPORT + void setBlackColor(); // for subtitles + #endif void draw(const Common::String &text, Graphics::Surface &surface, int x, int y) const; void drawColor(const Common::String &text, Graphics::Surface &surface, int x, int y, uint16 color); |