aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
authorMax Horn2009-11-26 16:10:59 +0000
committerMax Horn2009-11-26 16:10:59 +0000
commite98f789a02024c80f9e4275980587f962275cc13 (patch)
tree2a0912a40c5ee298f4f0c1a73f0e2a6989db08a5 /engines/m4
parentabee5aeb3c3d32034637eeb69d196fcd7019ea25 (diff)
downloadscummvm-rg350-e98f789a02024c80f9e4275980587f962275cc13.tar.gz
scummvm-rg350-e98f789a02024c80f9e4275980587f962275cc13.tar.bz2
scummvm-rg350-e98f789a02024c80f9e4275980587f962275cc13.zip
Fix warning
svn-id: r46156
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/scene.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/m4/scene.cpp b/engines/m4/scene.cpp
index d17de815e3..9940d09781 100644
--- a/engines/m4/scene.cpp
+++ b/engines/m4/scene.cpp
@@ -826,13 +826,13 @@ ActionsView::ActionsView(M4Engine *vm): InterfaceElement(vm, Common::Rect(0, MAD
_highlightedAction = 0;
}
-void ActionsView::getActionRect(int actionId, Common::Rect &bounds) {
+void ActionsView::getActionRect(int actionId, Common::Rect &b) {
int idx = actionId - kVerbLook;
- bounds.left = (idx / 5) * 32 + 2;
- bounds.top = (idx % 5) * 8 + MADS_SURFACE_HEIGHT + 3;
- bounds.right = ((idx / 5) + 1) * 32 + 3;
- bounds.bottom = ((idx % 5) + 1) * 8 + MADS_SURFACE_HEIGHT + 4;
+ b.left = (idx / 5) * 32 + 2;
+ b.top = (idx % 5) * 8 + MADS_SURFACE_HEIGHT + 3;
+ b.right = ((idx / 5) + 1) * 32 + 3;
+ b.bottom = ((idx % 5) + 1) * 8 + MADS_SURFACE_HEIGHT + 4;
}
void ActionsView::onRefresh(RectList *rects, M4Surface *destSurface) {