aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-05-15 16:21:04 +0200
committerStrangerke2016-05-15 16:21:04 +0200
commite5f60634a5c86a55f5b178b82879357bd6eb2321 (patch)
treecc650bb19788d5abe31262eb38a4c3b854f6fe4e
parent55162fb7ca2accfee74a6eb57cadfbf57962c161 (diff)
downloadscummvm-rg350-e5f60634a5c86a55f5b178b82879357bd6eb2321.tar.gz
scummvm-rg350-e5f60634a5c86a55f5b178b82879357bd6eb2321.tar.bz2
scummvm-rg350-e5f60634a5c86a55f5b178b82879357bd6eb2321.zip
GNAP: Fix regression in hotspots
-rw-r--r--engines/gnap/menu.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/gnap/menu.cpp b/engines/gnap/menu.cpp
index 21ea8d4a67..fd3c2b8d7c 100644
--- a/engines/gnap/menu.cpp
+++ b/engines/gnap/menu.cpp
@@ -47,8 +47,10 @@ void GnapEngine::initMenuHotspots1() {
int curId = 0;
for (int i = 0; i < 3; ++i) {
+ int top = 74 * i + 69;
for (int j = 0; j < 3; ++j) {
- _hotspots[curId]._rect = Common::Rect(87 * j + 262, 74 * i + 69, _hotspots[curId]._rect.left + 79, _hotspots[curId]._rect.top + 66);
+ int left = 87 * j + 262;
+ _hotspots[curId]._rect = Common::Rect(left, top, left + 79, top + 66);
_hotspots[curId]._flags = SF_NONE;
++curId;
}
@@ -72,7 +74,8 @@ void GnapEngine::initMenuHotspots2() {
int curId = 0;
for (int i = 0; i < 4; ++i) {
- _hotspots[curId]._rect = Common::Rect(312, 48 * i + 85, _hotspots[curId]._rect.left + 153, _hotspots[curId]._rect.top + 37);
+ int top = 48 * i + 85;
+ _hotspots[curId]._rect = Common::Rect(312, top, 465, top + 37);
_hotspots[curId]._flags = SF_GRAB_CURSOR;
++curId;
}
@@ -118,7 +121,8 @@ void GnapEngine::initSaveLoadHotspots() {
int curId = 0;
for (int i = 0; i < 7; ++i ) {
- _hotspots[curId]._rect = Common::Rect(288, 31 * i + 74, _hotspots[curId]._rect.left + 91, _hotspots[curId]._rect.top + 22);
+ int top = 31 * i + 74;
+ _hotspots[curId]._rect = Common::Rect(288, top, 379, top + 22);
_hotspots[curId]._flags = SF_GRAB_CURSOR;
++curId;
}