aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-11 14:26:12 +0000
committerNicola Mettifogo2007-08-11 14:26:12 +0000
commit81b864e9e8199b0102b122626badba059eb618d4 (patch)
treebeeeb91cbb85be2cac56c17507cee895bdb67b2b /engines/parallaction/disk_br.cpp
parent74b16c7e90e9b1dd011a85b447fc91073896a056 (diff)
downloadscummvm-rg350-81b864e9e8199b0102b122626badba059eb618d4.tar.gz
scummvm-rg350-81b864e9e8199b0102b122626badba059eb618d4.tar.bz2
scummvm-rg350-81b864e9e8199b0102b122626badba059eb618d4.zip
Added preliminary font support for Big Red Adventure.
svn-id: r28529
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r--engines/parallaction/disk_br.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index 3d8ee015d7..babe6043a6 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -83,7 +83,15 @@ Graphics::Surface* DosDisk_br::loadPointer() {
Font* DosDisk_br::loadFont(const char* name) {
debugC(5, kDebugDisk, "DosDisk_br::loadFont");
- return 0;
+
+ char path[PATH_LEN];
+ sprintf(path, "%s.fnt", name);
+
+ Common::File stream;
+ if (!stream.open(path))
+ errorFileNotFound(path);
+
+ return createFont(name, stream);
}