diff options
author | Travis Howell | 2009-03-23 12:30:47 +0000 |
---|---|---|
committer | Travis Howell | 2009-03-23 12:30:47 +0000 |
commit | 92e788dbb60e782151a81f33c22185b5de37b6b3 (patch) | |
tree | f766d19de1a5938f942ff8750a7468793f8e2e44 /engines | |
parent | d18274d0ee2bf8effcb36b726fc833503f7924aa (diff) | |
download | scummvm-rg350-92e788dbb60e782151a81f33c22185b5de37b6b3.tar.gz scummvm-rg350-92e788dbb60e782151a81f33c22185b5de37b6b3.tar.bz2 scummvm-rg350-92e788dbb60e782151a81f33c22185b5de37b6b3.zip |
Fix pallete for label font in the Amiga version of BRA.
svn-id: r39632
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/exec_br.cpp | 5 | ||||
-rw-r--r-- | engines/parallaction/graphics.cpp | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index 836dd14f7d..b0421f497a 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -89,10 +89,11 @@ void Parallaction_br::setupSubtitles(char *s, char *s2, int y) { // FIXME: render subtitles using the right color (10 instead of 0). // The original game features a nasty hack, having the font rendering routine // replacing color 12 of font RUSSIA with 10 when preparing subtitles. - _subtitle[0] = _gfx->createLabel(_labelFont, s, 0); + uint8 color = (_vm->getPlatform() == Common::kPlatformAmiga) ? 11 : 0; + _subtitle[0] = _gfx->createLabel(_labelFont, s, color); _gfx->showLabel(_subtitle[0], CENTER_LABEL_HORIZONTAL, _subtitleY); if (s2) { - _subtitle[1] = _gfx->createLabel(_labelFont, s2, 0); + _subtitle[1] = _gfx->createLabel(_labelFont, s2, color); _gfx->showLabel(_subtitle[1], CENTER_LABEL_HORIZONTAL, _subtitleY + 5 + _labelFont->height()); } else { _subtitle[1] = -1; diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 0f3ebfb5f2..078f696f3b 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -529,18 +529,18 @@ uint Gfx::renderFloatingLabel(Font *font, char *text) { Graphics::Surface *cnv = new Graphics::Surface; uint w, h; - if (_vm->getGameType() == GType_Nippon && _vm->getPlatform() == Common::kPlatformAmiga) { + if (_vm->getPlatform() == Common::kPlatformAmiga) { w = font->getStringWidth(text) + 16; - h = 10; + h = font->height() + 2; setupLabelSurface(*cnv, w, h); - font->setColor(7); + font->setColor((_vm->getGameType() == 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(1); + font->setColor((_vm->getGameType() == GType_BRA) ? 11 : 1); font->drawString((byte*)cnv->pixels + 1 + cnv->w, cnv->w, text); } else { w = font->getStringWidth(text); |