aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorStrangerke2014-12-05 17:58:41 +0100
committerPaul Gilbert2014-12-12 23:01:27 -0500
commit84d77b7daf8473cd25196ae9445015ed3656797a (patch)
tree99554ff0aaf4a958c374d774a2253379d7a74172 /engines/access
parent59099a72057ff2e242679955a80e29d425219c8a (diff)
downloadscummvm-rg350-84d77b7daf8473cd25196ae9445015ed3656797a.tar.gz
scummvm-rg350-84d77b7daf8473cd25196ae9445015ed3656797a.tar.bz2
scummvm-rg350-84d77b7daf8473cd25196ae9445015ed3656797a.zip
ACCESS: Fix the inventory behavior in the floppy and demo version
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/inventory.cpp16
1 files changed, 10 insertions, 6 deletions
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();