diff options
author | Paul Gilbert | 2014-08-10 19:42:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-10 19:42:33 -0400 |
commit | b6c946003198d84112e87cc2974eac6e9dc7c4f4 (patch) | |
tree | 15ed600ee7db4fd33d3d6341ba6f4a63705aafcb | |
parent | e833ae66e2a90e539ad004983acbdae2e4ee94f3 (diff) | |
download | scummvm-rg350-b6c946003198d84112e87cc2974eac6e9dc7c4f4.tar.gz scummvm-rg350-b6c946003198d84112e87cc2974eac6e9dc7c4f4.tar.bz2 scummvm-rg350-b6c946003198d84112e87cc2974eac6e9dc7c4f4.zip |
ACCESS: Fix palette translation during loading
-rw-r--r-- | engines/access/screen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/access/screen.cpp b/engines/access/screen.cpp index b2cb7da8cc..bc913c5e78 100644 --- a/engines/access/screen.cpp +++ b/engines/access/screen.cpp @@ -32,6 +32,8 @@ namespace Access { +#define VGA_COLOR_TRANS(x) ((x) * 255 / 63) + Screen::Screen(AccessEngine *vm) : _vm(vm) { create(320, 200, Graphics::PixelFormat::createFormatCLUT8()); Common::fill(&_tempPalette[0], &_tempPalette[PALETTE_SIZE], 0); @@ -90,6 +92,8 @@ void Screen::setPalette() { void Screen::loadRawPalette(Common::SeekableReadStream *stream) { stream->read(&_rawPalette[0], PALETTE_SIZE); + for (byte *p = &_rawPalette[0]; p < &_rawPalette[PALETTE_SIZE]; ++p) + *p = VGA_COLOR_TRANS(*p); } void Screen::updatePalette() { |