diff options
author | Colin Snover | 2016-03-11 19:03:28 -0600 |
---|---|---|
committer | Colin Snover | 2016-03-11 19:05:13 -0600 |
commit | 287391d1d5fa15261c817af567c67296d022cb8f (patch) | |
tree | becf514739af6578d2790f3d5003f8076ba84e22 /engines/sci | |
parent | dd220e7c82b62eb0a79791905700745ddf057760 (diff) | |
download | scummvm-rg350-287391d1d5fa15261c817af567c67296d022cb8f.tar.gz scummvm-rg350-287391d1d5fa15261c817af567c67296d022cb8f.tar.bz2 scummvm-rg350-287391d1d5fa15261c817af567c67296d022cb8f.zip |
SCI32: Fix incorrect mouse event coordinates in SCI2 hires
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kevent.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp index 254342111b..534d9ce713 100644 --- a/engines/sci/engine/kevent.cpp +++ b/engines/sci/engine/kevent.cpp @@ -83,11 +83,12 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) { } // For a real event we use its associated mouse position - mousePos = curEvent.mousePos; #ifdef ENABLE_SCI32 - if (getSciVersion() >= SCI_VERSION_2_1_EARLY) - g_sci->_gfxCoordAdjuster->fromDisplayToScript(mousePos.y, mousePos.x); + if (getSciVersion() >= SCI_VERSION_2) + mousePos = curEvent.mousePosSci; + else #endif + mousePos = curEvent.mousePos; // Limit the mouse cursor position, if necessary g_sci->_gfxCursor->refreshPosition(); |