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

This commit is contained in:
Paul Gilbert 2015-09-28 08:10:37 -04:00
parent 35d5533361
commit f633b02d62
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -185,6 +185,9 @@ public:
*/
void doBgAnimEraseBackground();
/**
* Draws overlays onto the scene. Basically, the smoke effects some scenes have
*/
void drawMaskArea(bool mode);
/**