diff options
Diffstat (limited to 'engines/queen/talk.cpp')
-rw-r--r-- | engines/queen/talk.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/queen/talk.cpp b/engines/queen/talk.cpp index f93674e2ff..fd8d6e1ec7 100644 --- a/engines/queen/talk.cpp +++ b/engines/queen/talk.cpp @@ -21,7 +21,10 @@ */ #include "common/stdafx.h" +#include "common/events.h" +#include "common/system.h" #include "common/rect.h" + #include "queen/talk.h" #include "queen/bankman.h" @@ -1268,7 +1271,8 @@ int16 Talk::selectSentence() { _vm->update(); - zone = _vm->grid()->findZoneForPos(GS_PANEL, _vm->input()->mousePosX(), _vm->input()->mousePosY()); + Common::Point mouse = g_system->getEventManager()->getMousePos(); + zone = _vm->grid()->findZoneForPos(GS_PANEL, mouse.x, mouse.y); int mouseButton = _vm->input()->mouseButton(); _vm->input()->clearMouseButton(); @@ -1326,8 +1330,7 @@ int16 Talk::selectSentence() { } _vm->input()->clearKeyVerb(); - } - else if (mouseButton) { + } else if (mouseButton) { selectedSentence = zone; } |