diff options
author | Eugene Sandulenko | 2005-10-05 01:31:46 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-10-05 01:31:46 +0000 |
commit | 579478a586b6d6c51bd5f652def24b362251d082 (patch) | |
tree | 7b5ebec5bcf25e30c217232969213ec0be768f50 /saga/scene.cpp | |
parent | c7e8af5e5e620b9a4fec4a88460e42410eae6e5d (diff) | |
download | scummvm-rg350-579478a586b6d6c51bd5f652def24b362251d082.tar.gz scummvm-rg350-579478a586b6d6c51bd5f652def24b362251d082.tar.bz2 scummvm-rg350-579478a586b6d6c51bd5f652def24b362251d082.zip |
IHNM used only 248 colors for game graphics. Top part of the palette
was read from resources. Switching to this scheme fixes magenta outlines
in subtitles.
svn-id: r18935
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index dd58ba67cb..0ce7ee17ac 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -447,7 +447,10 @@ void Scene::changeScene(int16 sceneNumber, int actorsEntrance, SceneTransitionTy cPal[j].blue = *pal++; } free(colors); - _vm->_gfx->setPalette(cPal); + if (_vm->getGameType() == GType_IHNM) + _vm->_gfx->setPalette(cPal, 0, 248); + else + _vm->_gfx->setPalette(cPal); } @@ -1132,7 +1135,10 @@ void Scene::processSceneResources() { pal[c].green = *palPtr++; pal[c].blue = *palPtr++; } - _vm->_gfx->setPalette(pal); + if (_vm->getGameType() == GType_IHNM) + _vm->_gfx->setPalette(pal, 0, 248); + else + _vm->_gfx->setPalette(pal); } break; default: |