diff options
author | Matthew Hoops | 2009-06-23 20:46:38 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-06-23 20:46:38 +0000 |
commit | 4a380dc0d8b1a75fa31e0b4511e03b0782b43f89 (patch) | |
tree | 294b96fcada89ecdad511332c781924043ac80e6 | |
parent | a44859e01bead5a30d8446a5bc75857d000199d9 (diff) | |
download | scummvm-rg350-4a380dc0d8b1a75fa31e0b4511e03b0782b43f89.tar.gz scummvm-rg350-4a380dc0d8b1a75fa31e0b4511e03b0782b43f89.tar.bz2 scummvm-rg350-4a380dc0d8b1a75fa31e0b4511e03b0782b43f89.zip |
ENABLE_16BIT has been renamed to ENABLE_RGB_COLOR as of r41696, so make sure the Groovie engine uses that too
svn-id: r41817
-rw-r--r-- | engines/groovie/groovie.cpp | 2 | ||||
-rw-r--r-- | engines/groovie/groovie.h | 2 | ||||
-rw-r--r-- | engines/groovie/roq.cpp | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp index 5d89799648..c1826e12ce 100644 --- a/engines/groovie/groovie.cpp +++ b/engines/groovie/groovie.cpp @@ -72,7 +72,7 @@ Common::Error GroovieEngine::run() { // Initialize the graphics switch (_gameDescription->version) { case kGroovieV2: -#ifdef ENABLE_16BIT +#ifdef ENABLE_RGB_COLOR _pixelFormat = _system->getBestFormat(); initGraphics(640, 480, true, _pixelFormat); break; diff --git a/engines/groovie/groovie.h b/engines/groovie/groovie.h index adc6986a87..3f7f7cb0ed 100644 --- a/engines/groovie/groovie.h +++ b/engines/groovie/groovie.h @@ -85,7 +85,7 @@ protected: public: void waitForInput(); -#ifdef ENABLE_16BIT +#ifdef ENABLE_RGB_COLOR Graphics::PixelFormat _pixelFormat; #endif Script _script; diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp index 95acb64f6a..56237655e9 100644 --- a/engines/groovie/roq.cpp +++ b/engines/groovie/roq.cpp @@ -29,7 +29,7 @@ #include "groovie/groovie.h" #include "groovie/roq.h" -#ifdef ENABLE_16BIT +#ifdef ENABLE_RGB_COLOR // Required for the YUV to RGB conversion #include "graphics/dither.h" #endif @@ -47,7 +47,7 @@ ROQPlayer::ROQPlayer(GroovieEngine *vm) : _currBuf = new Graphics::Surface(); _prevBuf = new Graphics::Surface(); -#ifndef ENABLE_16BIT +#ifndef ENABLE_RGB_COLOR byte pal[256 * 4]; #ifdef DITHER byte pal3[256 * 3]; @@ -92,7 +92,7 @@ ROQPlayer::ROQPlayer(GroovieEngine *vm) : #endif // DITHER _syst->setPalette(pal, 0, 256); -#endif // !ENABLE_16BIT +#endif // !ENABLE_RGB_COLOR } ROQPlayer::~ROQPlayer() { @@ -160,7 +160,7 @@ void ROQPlayer::buildShowBuf() { byte *out = (byte *)_showBuf.getBasePtr(0, line); byte *in = (byte *)_prevBuf->getBasePtr(0, line / _scaleY); for (int x = 0; x < _showBuf.w; x++) { -#ifdef ENABLE_16BIT +#ifdef ENABLE_RGB_COLOR // Do the format conversion (YUV -> RGB -> Screen format) byte r, g, b; Graphics::PaletteLUT::YUV2RGB(*in, *(in + 1), *(in + 2), r, g, b); @@ -169,7 +169,7 @@ void ROQPlayer::buildShowBuf() { // Skip to the next pixel out += _vm->_pixelFormat.bytesPerPixel; -#else // !ENABLE_16BIT +#else // !ENABLE_RGB_COLOR #ifdef DITHER *out = _dither->dither(*in, *(in + 1), *(in + 2), x); #else @@ -178,7 +178,7 @@ void ROQPlayer::buildShowBuf() { #endif // DITHER // Skip to the next pixel out++; -#endif // ENABLE_16BIT +#endif // ENABLE_RGB_COLOR if (!(x % _scaleX)) in += _prevBuf->bytesPerPixel; @@ -335,7 +335,7 @@ bool ROQPlayer::processBlockInfo(ROQBlockHeader &blockHeader) { // Allocate new buffers _currBuf->create(width, height, 3); _prevBuf->create(width, height, 3); -#ifdef ENABLE_16BIT +#ifdef ENABLE_RGB_COLOR _showBuf.create(width * _scaleX, height * _scaleY, _vm->_pixelFormat.bytesPerPixel); #else _showBuf.create(width * _scaleX, height * _scaleY, 1); |