From e00a1b88ca7500516d78f4bad515b5a558af82a6 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 15 Mar 2014 14:08:43 -0400 Subject: MADS: Perform palette translation on background --- engines/mads/scene_data.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/mads/scene_data.cpp') 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(); -- cgit v1.2.3