diff options
author | Matthew Hoops | 2014-01-13 19:05:07 -0500 |
---|---|---|
committer | Matthew Hoops | 2014-06-01 22:08:28 -0400 |
commit | 5d4fd2e1540ae9ced60b68c3253d3b5b04254403 (patch) | |
tree | fbf76760dc3ad4b6c95d4ef946cac3fb3f2c61cc /engines/groovie/roq.cpp | |
parent | 72e7d55d629ecb38ad0dc1cabcd6911c7c3d9ebd (diff) | |
download | scummvm-rg350-5d4fd2e1540ae9ced60b68c3253d3b5b04254403.tar.gz scummvm-rg350-5d4fd2e1540ae9ced60b68c3253d3b5b04254403.tar.bz2 scummvm-rg350-5d4fd2e1540ae9ced60b68c3253d3b5b04254403.zip |
GROOVIE: Remove groovie2 8bpp mode
It didn't work properly, it's not what the original did, and spooky mode needs to be implemented completely differently
Diffstat (limited to 'engines/groovie/roq.cpp')
-rw-r--r-- | engines/groovie/roq.cpp | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp index 2776a0455d..5eebc6a6bb 100644 --- a/engines/groovie/roq.cpp +++ b/engines/groovie/roq.cpp @@ -50,19 +50,6 @@ ROQPlayer::ROQPlayer(GroovieEngine *vm) : // Create the work surfaces _currBuf = new Graphics::Surface(); _prevBuf = new Graphics::Surface(); - - if (_vm->_mode8bit) { - byte pal[256 * 3]; - - // Set a grayscale palette - for (int i = 0; i < 256; i++) { - pal[(i * 3) + 0] = i; - pal[(i * 3) + 1] = i; - pal[(i * 3) + 2] = i; - } - - _syst->getPaletteManager()->setPalette(pal, 0, 256); - } } ROQPlayer::~ROQPlayer() { @@ -118,18 +105,11 @@ void ROQPlayer::buildShowBuf() { byte *out = (byte *)_bg->getBasePtr(0, line); byte *in = (byte *)_currBuf->getBasePtr(0, line / _scaleY); for (int x = 0; x < _bg->w; x++) { - if (_vm->_mode8bit) { - // Just use the luminancy component - *out = *in; -#ifdef USE_RGB_COLOR - } else { - // Do the format conversion (YUV -> RGB -> Screen format) - byte r, g, b; - Graphics::YUV2RGB(*in, *(in + 1), *(in + 2), r, g, b); - // FIXME: this is fixed to 16bit - *(uint16 *)out = (uint16)_vm->_pixelFormat.RGBToColor(r, g, b); -#endif // USE_RGB_COLOR - } + // Do the format conversion (YUV -> RGB -> Screen format) + byte r, g, b; + Graphics::YUV2RGB(*in, *(in + 1), *(in + 2), r, g, b); + // FIXME: this is fixed to 16bit + *(uint16 *)out = _vm->_pixelFormat.RGBToColor(r, g, b); // Skip to the next pixel out += _vm->_pixelFormat.bytesPerPixel; |