From 2dd30d9aa6ee0adbd0a24fbd5ac82b8d0f216630 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 20 May 2007 16:13:16 +0000 Subject: Disabled halfbrite for Amiga versions. The effect will be enabled again when support is complete. svn-id: r26890 --- engines/parallaction/graphics.cpp | 3 ++- engines/parallaction/intro.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 6f03e7030d..388547e751 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -237,6 +237,7 @@ void Gfx::quickFadePalette(Palette pal) { } void Gfx::setHalfbriteMode(bool enable) { +#ifdef HALFBRITE if (_vm->getPlatform() != Common::kPlatformAmiga) return; if (enable == _halfbrite) return; @@ -249,9 +250,9 @@ void Gfx::setHalfbriteMode(bool enable) { *buf++ ^= 0x20; _halfbrite = !_halfbrite; +#endif } - void Gfx::updateScreen() { // printf("Gfx::updateScreen()\n"); g_system->copyRectToScreen(_buffers[kBitFront], SCREEN_WIDTH, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); diff --git a/engines/parallaction/intro.cpp b/engines/parallaction/intro.cpp index 919b480634..2292058549 100644 --- a/engines/parallaction/intro.cpp +++ b/engines/parallaction/intro.cpp @@ -246,7 +246,7 @@ void _c_shade(void *parm) { } void _c_projector(void*) { - +#ifdef HALFBRITE static int dword_16032 = 0; // Bitmap bm; @@ -298,14 +298,19 @@ void _c_projector(void*) { dword_16032 = 1; return; +#endif } void _c_HBOff(void*) { +#ifdef HALFBRITE _vm->_gfx->setHalfbriteMode(false); +#endif } void _c_HBOn(void*) { +#ifdef HALFBRITE _vm->_gfx->setHalfbriteMode(true); +#endif } } // namespace Parallaction -- cgit v1.2.3