aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/m4.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-05-25 10:46:56 +0000
committerPaul Gilbert2010-05-25 10:46:56 +0000
commita83aafab545cbfdf47e5f724a856d1cbbb7914d0 (patch)
treeda0e671d752d2692985c12cfa6f5ef806fbe0cfd /engines/m4/m4.cpp
parent4a8841202a25d48df190d9479bda98026f9c14d5 (diff)
downloadscummvm-rg350-a83aafab545cbfdf47e5f724a856d1cbbb7914d0.tar.gz
scummvm-rg350-a83aafab545cbfdf47e5f724a856d1cbbb7914d0.tar.bz2
scummvm-rg350-a83aafab545cbfdf47e5f724a856d1cbbb7914d0.zip
Changed the font system to allow for multiple fonts to be loaded simultaneously
svn-id: r49209
Diffstat (limited to 'engines/m4/m4.cpp')
-rw-r--r--engines/m4/m4.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/m4/m4.cpp b/engines/m4/m4.cpp
index 897fb468cd..2024138f67 100644
--- a/engines/m4/m4.cpp
+++ b/engines/m4/m4.cpp
@@ -170,7 +170,7 @@ Common::Error MadsM4Engine::run() {
_events = new Events(this);
_kernel = new Kernel(this);
_player = new Player(this);
- _font = new Font(this);
+ _font = new FontManager(this);
if (getGameType() == GType_Burger) {
_actor = new Actor(this);
_conversationView = new ConversationView(this);
@@ -554,9 +554,9 @@ Common::Error MadsEngine::run() {
_scene->show();
_font->setFont(FONT_MAIN_MADS);
- _font->setColors(2, 1, 3);
- _font->writeString(_scene->getBackgroundSurface(), "Testing the M4/MADS ScummVM engine", 5, 160, 310, 2);
- _font->writeString(_scene->getBackgroundSurface(), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 5, 180, 310, 2);
+ _font->current()->setColours(2, 1, 3);
+ _font->current()->writeString(_scene->getBackgroundSurface(), "Testing the M4/MADS ScummVM engine", 5, 160, 310, 2);
+ _font->current()->writeString(_scene->getBackgroundSurface(), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 5, 180, 310, 2);
if (getGameType() == GType_DragonSphere) {
//_scene->showMADSV2TextBox("Test", 10, 10, NULL);