diff options
author | Travis Howell | 2008-04-06 07:05:56 +0000 |
---|---|---|
committer | Travis Howell | 2008-04-06 07:05:56 +0000 |
commit | 27816d8c8bd1c3d4dfbacf5d3973825c9085f349 (patch) | |
tree | 891c57fbbbeb41aa7a07ca42f6c2a4fa026ddf32 /engines/parallaction/font.cpp | |
parent | 3d1a2e2049d599d88dc834a05dd25978f8a0f8f7 (diff) | |
download | scummvm-rg350-27816d8c8bd1c3d4dfbacf5d3973825c9085f349.tar.gz scummvm-rg350-27816d8c8bd1c3d4dfbacf5d3973825c9085f349.tar.bz2 scummvm-rg350-27816d8c8bd1c3d4dfbacf5d3973825c9085f349.zip |
Add very basic support for Amiga version of BRA.
svn-id: r31416
Diffstat (limited to 'engines/parallaction/font.cpp')
-rw-r--r-- | engines/parallaction/font.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/parallaction/font.cpp b/engines/parallaction/font.cpp index 64d2d170ee..bc67acf644 100644 --- a/engines/parallaction/font.cpp +++ b/engines/parallaction/font.cpp @@ -540,6 +540,11 @@ Font *DosDisk_br::createFont(const char *name, Common::ReadStream &stream) { return new BraFont(stream); } +Font *AmigaDisk_br::createFont(const char *name, Common::SeekableReadStream &stream) { + // TODO: implement AmigaLabelFont for labels + return new AmigaFont(stream); +} + void Parallaction_ns::initFonts() { if (getPlatform() == Common::kPlatformPC) { @@ -557,4 +562,22 @@ void Parallaction_ns::initFonts() { } +void Parallaction_br::initFonts() { + if (getPlatform() == Common::kPlatformPC) { + _menuFont = _disk->loadFont("russia"); + _dialogueFont = _disk->loadFont("comic"); + _labelFont = _menuFont; + } else { + // TODO: Confirm fonts matches + // fonts/natasha/16 + // fonts/sonya/18 + // fonts/vanya/16 + + _menuFont = _disk->loadFont("fonts/natasha/16"); + _dialogueFont = _disk->loadFont("fonts/sonya/18"); + Common::MemoryReadStream stream(_amigaTopazFont, 2600, false); + _labelFont = new AmigaFont(stream); + } +} + } |