diff options
author | Paul Gilbert | 2014-03-15 14:08:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-15 14:08:43 -0400 |
commit | e00a1b88ca7500516d78f4bad515b5a558af82a6 (patch) | |
tree | 06597b1e7a4aa4d01d06b44a5d034d2c59546ee3 /engines/mads | |
parent | 49ca357e9ef19aa2650ca42b1f42c8aacf937ec6 (diff) | |
download | scummvm-rg350-e00a1b88ca7500516d78f4bad515b5a558af82a6.tar.gz scummvm-rg350-e00a1b88ca7500516d78f4bad515b5a558af82a6.tar.bz2 scummvm-rg350-e00a1b88ca7500516d78f4bad515b5a558af82a6.zip |
MADS: Perform palette translation on background
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/scene_data.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp index fe768934c3..de053a62e9 100644 --- a/engines/mads/scene_data.cpp +++ b/engines/mads/scene_data.cpp @@ -535,6 +535,11 @@ void SceneInfo::load(int sceneId, int v1, const Common::String &resName, stream = artResource.getItemStream(1); stream->read(bgSurface.getPixels(), bgSurface.w * bgSurface.h); + if (!(flags & 1)) { + // Translate the background to use the correct palette indexes + bgSurface.translate(artHeader._palette); + } + // Close the ART file delete stream; artFile.close(); |