aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2010-05-22 18:00:16 +0000
committerNicola Mettifogo2010-05-22 18:00:16 +0000
commit5f2a88e5966e64e24f6630ca3d1e84077d76998b (patch)
treec8c28f767d5afb7b0216c363828dde96bba111f8 /engines/parallaction/graphics.cpp
parent95f6a71f3699c91ec021e207d38c479dd7f28fa1 (diff)
downloadscummvm-rg350-5f2a88e5966e64e24f6630ca3d1e84077d76998b.tar.gz
scummvm-rg350-5f2a88e5966e64e24f6630ca3d1e84077d76998b.tar.bz2
scummvm-rg350-5f2a88e5966e64e24f6630ca3d1e84077d76998b.zip
Cleanup (removed more Parallaction::getGameType() calls).
svn-id: r49147
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r--engines/parallaction/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index a7b1f6fe32..bc1759ecd7 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -536,12 +536,12 @@ GfxObj *Gfx::renderFloatingLabel(Font *font, char *text) {
setupLabelSurface(*cnv, w, h);
- font->setColor((_vm->getGameType() == GType_BRA) ? 0 : 7);
+ font->setColor((_gameType == GType_BRA) ? 0 : 7);
font->drawString((byte*)cnv->pixels + 1, cnv->w, text);
font->drawString((byte*)cnv->pixels + 1 + cnv->w * 2, cnv->w, text);
font->drawString((byte*)cnv->pixels + cnv->w, cnv->w, text);
font->drawString((byte*)cnv->pixels + 2 + cnv->w, cnv->w, text);
- font->setColor((_vm->getGameType() == GType_BRA) ? 11 : 1);
+ font->setColor((_gameType == GType_BRA) ? 11 : 1);
font->drawString((byte*)cnv->pixels + 1 + cnv->w, cnv->w, text);
} else {
w = font->getStringWidth(text);
@@ -833,7 +833,7 @@ void Gfx::setBackground(uint type, BackgroundInfo *info) {
// The PC version of BRA needs the entries 20-31 of the palette to be constant, but
// the background resource files are screwed up. The right colors come from an unused
// bitmap (pointer.bmp). Nothing is known about the Amiga version so far.
- if ((_vm->getGameType() == GType_BRA) && (_vm->getPlatform() == Common::kPlatformPC)) {
+ if ((_gameType == GType_BRA) && (_vm->getPlatform() == Common::kPlatformPC)) {
int r, g, b;
for (uint i = 16; i < 32; i++) {
_backupPal.getEntry(i, r, g, b);