[Scummvm-cvs-logs] scummvm master -> f633b02d62f0e2dc4aad3b9220d13f71aeaecdee

dreammaster dreammaster at scummvm.org
Mon Sep 28 14:11:10 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f633b02d62 SHERLOCK: RT: Fix palette corruption using Journal in Diogenes club


Commit: f633b02d62f0e2dc4aad3b9220d13f71aeaecdee
    https://github.com/scummvm/scummvm/commit/f633b02d62f0e2dc4aad3b9220d13f71aeaecdee
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-09-28T08:10:37-04:00

Commit Message:
SHERLOCK: RT: Fix palette corruption using Journal in Diogenes club

Changed paths:
    engines/sherlock/tattoo/tattoo_user_interface.cpp
    engines/sherlock/tattoo/tattoo_user_interface.h



diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp
index 139497a..623fb8d 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.cpp
+++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp
@@ -215,9 +215,10 @@ void TattooUserInterface::doJournal() {
 	TattooJournal &journal = *(TattooJournal *)_vm->_journal;
 	TattooScene &scene = *(TattooScene *)_vm->_scene;
 	Screen &screen = *_vm->_screen;
-	byte lookupTable[PALETTE_COUNT];
+	byte lookupTable[PALETTE_COUNT], lookupTable1[PALETTE_COUNT];
 
 	Common::copy(&_lookupTable[0], &_lookupTable[PALETTE_COUNT], &lookupTable[0]);
+	Common::copy(&_lookupTable1[0], &_lookupTable1[PALETTE_COUNT], &lookupTable1[0]);
 	_menuMode = JOURNAL_MODE;
 	journal.show();
 
@@ -229,6 +230,7 @@ void TattooUserInterface::doJournal() {
 	screen.clear();
 	screen.setPalette(screen._cMap);
 	Common::copy(&lookupTable[0], &lookupTable[PALETTE_COUNT], &_lookupTable[0]);
+	Common::copy(&lookupTable1[0], &lookupTable1[PALETTE_COUNT], &_lookupTable1[0]);
 
 	// Restore the scene
 	screen._backBuffer1.blitFrom(screen._backBuffer2);
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.h b/engines/sherlock/tattoo/tattoo_user_interface.h
index c92ff21..d89da4a 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.h
+++ b/engines/sherlock/tattoo/tattoo_user_interface.h
@@ -185,6 +185,9 @@ public:
 	 */
 	void doBgAnimEraseBackground();
 
+	/**
+	 * Draws overlays onto the scene. Basically, the smoke effects some scenes have
+	 */
 	void drawMaskArea(bool mode);
 
 	/**






More information about the Scummvm-git-logs mailing list