aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/gfxbase.cpp
diff options
context:
space:
mode:
authorTravis Howell2008-07-28 07:20:55 +0000
committerTravis Howell2008-07-28 07:20:55 +0000
commit533dbfd756f744234fdc2942472a61b542530193 (patch)
tree9cb90750113fc61488d55783e2c8567d40590b4d /engines/parallaction/gfxbase.cpp
parent258f1e8fe630e4323c93c03bbf993307ef652fb5 (diff)
downloadscummvm-rg350-533dbfd756f744234fdc2942472a61b542530193.tar.gz
scummvm-rg350-533dbfd756f744234fdc2942472a61b542530193.tar.bz2
scummvm-rg350-533dbfd756f744234fdc2942472a61b542530193.zip
Add basic support for running Amiga and PC demos of BRA.
svn-id: r33357
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r--engines/parallaction/gfxbase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp
index e8250ac8fd..c9892ce2f3 100644
--- a/engines/parallaction/gfxbase.cpp
+++ b/engines/parallaction/gfxbase.cpp
@@ -204,6 +204,10 @@ void Gfx::drawGfxObjects(Graphics::Surface &surf) {
void Gfx::drawText(Font *font, Graphics::Surface* surf, uint16 x, uint16 y, const char *text, byte color) {
+ // TODO: Add support for difference in font data
+ if (_vm->getGameType() == GType_BRA && _vm->getPlatform() == Common::kPlatformPC && (_vm->getFeatures() & GF_DEMO))
+ return;
+
byte *dst = (byte*)surf->getBasePtr(x, y);
font->setColor(color);
font->drawString(dst, surf->w, text);