diff options
author | Nicola Mettifogo | 2007-08-11 17:25:57 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-11 17:25:57 +0000 |
commit | b07f787f7ff49c0a88122cd60b6c73ae850adc26 (patch) | |
tree | 15b4120a5d1c7a1d828e9bc3333d4d411caf88a5 /engines/parallaction/parallaction_br.cpp | |
parent | 81b864e9e8199b0102b122626badba059eb618d4 (diff) | |
download | scummvm-rg350-b07f787f7ff49c0a88122cd60b6c73ae850adc26.tar.gz scummvm-rg350-b07f787f7ff49c0a88122cd60b6c73ae850adc26.tar.bz2 scummvm-rg350-b07f787f7ff49c0a88122cd60b6c73ae850adc26.zip |
Moved core font management from Gfx to engine. Gfx still retains features related to displaying text on screen.
svn-id: r28530
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 0455b50381..a53ab54bf6 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -53,12 +53,17 @@ int Parallaction_br::init() { _soundMan = new DummySoundMan(this); initResources(); + initFonts(); Parallaction::init(); return 0; } +Parallaction_br::~Parallaction_br() { + freeFonts(); +} + void Parallaction_br::callFunction(uint index, void* parm) { assert(index < 6); // magic value 6 is maximum # of callables for Big Red Adventure @@ -106,4 +111,23 @@ void Parallaction_br::initGame() { return; } + + +void Parallaction_br::initFonts() { + + // TODO: find out which font is used for labels + + _menuFont = _disk->loadFont("russia"); + _dialogueFont = _disk->loadFont("comic"); + +} + +void Parallaction_br::freeFonts() { + + delete _menuFont; + delete _dialogueFont; + + return; +} + } // namespace Parallaction |