From 84d77b7daf8473cd25196ae9445015ed3656797a Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 5 Dec 2014 17:58:41 +0100 Subject: ACCESS: Fix the inventory behavior in the floppy and demo version --- engines/access/inventory.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'engines/access') diff --git a/engines/access/inventory.cpp b/engines/access/inventory.cpp index d9e1b496a4..78a85c3257 100644 --- a/engines/access/inventory.cpp +++ b/engines/access/inventory.cpp @@ -168,7 +168,9 @@ int InventoryManager::newDisplayInv() { restoreFields(); screen.restorePalette(); - if (!screen._vesaMode && !_invRefreshFlag) { + // The original was testing the vesa mode too. + // We removed this check as we don't use pre-rendering + if (!_invRefreshFlag) { screen.clearBuffer(); screen.setPalette(); } @@ -179,10 +181,10 @@ int InventoryManager::newDisplayInv() { screen.setBufferScan(); room.buildScreen(); - if (!screen._vesaMode) { - screen.fadeOut(); - _vm->copyBF2Vid(); - } + // The original was doing a check on the vesa mode at this point. + // We don't need it as we don't do inventory pre-rendering + screen.fadeOut(); + _vm->copyBF2Vid(); } events._cursorExitFlag = false; @@ -275,7 +277,9 @@ void InventoryManager::initFields() { _vm->_buffer1.clearBuffer(); _vm->_buffer2.clearBuffer(); - if (!_invRefreshFlag && !screen._vesaMode) + // The original was doing at this point a check on vesa mode + // We don't need it as we don't do inventory pre-rendering + if (!_invRefreshFlag) screen.clearBuffer(); screen.savePalette(); -- cgit v1.2.3