Ticket #9179: 0005-use-absolute-cursor-position-when-checking-hitCharac.txt

File 0005-use-absolute-cursor-position-when-checking-hitCharac.txt, 802 bytes (added by fuzzie, 11 years ago)
Line 
1From 6780910192681253ca7fe8129be5b359c854c360 Mon Sep 17 00:00:00 2001
2From: Alyssa Milburn <fuzzie@fuzzie.org>
3Date: Thu, 20 May 2010 13:42:21 +0200
4Subject: [PATCH] use absolute cursor position when checking hitCharacter for inventory
5
6---
7 engines/parallaction/input.cpp | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
9
10diff --git a/engines/parallaction/input.cpp b/engines/parallaction/input.cpp
11index 6cffcdc..1b0e5c5 100644
12--- a/engines/parallaction/input.cpp
13+++ b/engines/parallaction/input.cpp
14@@ -352,7 +352,7 @@ bool Input::translateGameInput() {
15
16 void Input::enterInventoryMode() {
17 Common::Point mousePos;
18- getCursorPos(mousePos);
19+ getAbsoluteCursorPos(mousePos);
20 bool hitCharacter = _vm->hitZone(kZoneYou, mousePos.x, mousePos.y);
21
22 if (hitCharacter) {
23--
241.6.3.3
25