[Scummvm-cvs-logs] scummvm master -> 4207d74762e8ad609a01015684ea72a5988a5b2b
dreammaster
dreammaster at scummvm.org
Sun Jun 1 21:54:55 CEST 2014
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:
4207d74762 MADS: Fix selecting inventory items when inventory is scrolled
Commit: 4207d74762e8ad609a01015684ea72a5988a5b2b
https://github.com/scummvm/scummvm/commit/4207d74762e8ad609a01015684ea72a5988a5b2b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-06-01T15:54:22-04:00
Commit Message:
MADS: Fix selecting inventory items when inventory is scrolled
Changed paths:
engines/mads/user_interface.cpp
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index 7392d53..8c1cba7 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -688,7 +688,7 @@ void UserInterface::loadElements() {
// Set up inventory list
_categoryIndexes[CAT_INV_LIST - 1] = _vm->_game->_screenObjects.size() + 1;
for (int idx = 0; idx < 5; ++idx) {
- getBounds(CAT_INV_LIST, idx, bounds);
+ getBounds(CAT_INV_LIST, _inventoryTopIndex + idx, bounds);
moveRect(bounds);
_vm->_game->_screenObjects.add(bounds, LAYER_GUI, CAT_INV_LIST, idx);
More information about the Scummvm-git-logs
mailing list