diff options
Diffstat (limited to 'engines/voyeur/files_threads.cpp')
-rw-r--r-- | engines/voyeur/files_threads.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp index 8ea8c0c327..d2ac182030 100644 --- a/engines/voyeur/files_threads.cpp +++ b/engines/voyeur/files_threads.cpp @@ -626,10 +626,10 @@ void ThreadResource::parsePlayCommands() { _vm->_voy->_computerTimeMin = READ_LE_UINT16(dataP + 4); _vm->_voy->_computerTimeMax = READ_LE_UINT16(dataP + 6); - _vm->_voy->_computerButtonRect.left = COMPUTER_BUTTON_TABLE[_vm->_voy->_computerTextId * 4]; - _vm->_voy->_computerButtonRect.top = COMPUTER_BUTTON_TABLE[_vm->_voy->_computerTextId * 4 + 1]; - _vm->_voy->_computerButtonRect.right = COMPUTER_BUTTON_TABLE[_vm->_voy->_computerTextId * 4 + 2]; - _vm->_voy->_computerButtonRect.bottom = COMPUTER_BUTTON_TABLE[_vm->_voy->_computerTextId * 4 + 3]; + _vm->_voy->_computerScreenRect.left = COMPUTER_SCREEN_TABLE[_vm->_voy->_computerTextId * 4]; + _vm->_voy->_computerScreenRect.top = COMPUTER_SCREEN_TABLE[_vm->_voy->_computerTextId * 4 + 1]; + _vm->_voy->_computerScreenRect.right = COMPUTER_SCREEN_TABLE[_vm->_voy->_computerTextId * 4 + 2]; + _vm->_voy->_computerScreenRect.bottom = COMPUTER_SCREEN_TABLE[_vm->_voy->_computerTextId * 4 + 3]; } dataP += 8; @@ -1152,7 +1152,8 @@ void ThreadResource::doRoom() { pt += Common::Point(30, 15); hotspotId = -1; - if (voy._computerTextId != -1 && voy._computerButtonRect.contains(pt)) + + if (voy._computerTextId != -1 && voy._computerScreenRect.contains(pt)) hotspotId = 999; for (uint idx = 0; idx < hotspots.size(); ++idx) { |