aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/gui.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-08-13 17:45:49 +0200
committerBorja Lorente2016-08-19 16:29:17 +0200
commit019f3d4b626f290fa7e2bc6c6be0ab5c43ecd468 (patch)
tree203e78a0e8491b18e1c0b72c2c58b6e5e3dd5f3b /engines/macventure/gui.cpp
parent44a6f8a1dbdfa271aaa9ccf4b1ecc48e275ca11a (diff)
downloadscummvm-rg350-019f3d4b626f290fa7e2bc6c6be0ab5c43ecd468.tar.gz
scummvm-rg350-019f3d4b626f290fa7e2bc6c6be0ab5c43ecd468.tar.bz2
scummvm-rg350-019f3d4b626f290fa7e2bc6c6be0ab5c43ecd468.zip
MACVENTURE: Add wrapper class for global settings
Diffstat (limited to 'engines/macventure/gui.cpp')
-rw-r--r--engines/macventure/gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp
index f8f9497b8b..834ffc1e19 100644
--- a/engines/macventure/gui.cpp
+++ b/engines/macventure/gui.cpp
@@ -314,14 +314,14 @@ WindowReference Gui::createInventoryWindow(ObjID objRef) {
if (_windowData->back().refcon < 0x80) { // There is already another inventory window
newData.bounds = _windowData->back().bounds; // Inventory windows are always last
- newData.bounds.translate(newData.bounds.left + settings.invOffsetX, newData.bounds.top + settings.invOffsetY);
+ newData.bounds.translate(newData.bounds.left + settings._invOffsetX, newData.bounds.top + settings._invOffsetY);
} else {
BorderBounds bbs = borderBounds(kInvWindow);
newData.bounds = Common::Rect(
- settings.invLeft - bbs.leftOffset,
- settings.invTop - bbs.topOffset,
- settings.invLeft + settings.invWidth,
- settings.invTop + settings.invHeight);
+ settings._invLeft - bbs.leftOffset,
+ settings._invTop - bbs.topOffset,
+ settings._invLeft + settings._invWidth,
+ settings._invTop + settings._invHeight);
}
newData.type = kInvWindow;
newData.hasCloseBox = true;