mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
SCI: fix bug no. 15242
(regression from PR 5877)
This commit is contained in:
parent
dfd960e3a9
commit
b7147fda30
@ -206,10 +206,11 @@ SciEvent EventManager::getScummVMEvent() {
|
||||
found = em->pollEvent(ev);
|
||||
} while (found && ev.type == Common::EVENT_MOUSEMOVE);
|
||||
|
||||
Common::Point mousePos = g_sci->_gfxScreen->gfxDriver()->getMousePos();
|
||||
Common::Point mousePos;
|
||||
|
||||
#if ENABLE_SCI32
|
||||
if (getSciVersion() >= SCI_VERSION_2) {
|
||||
mousePos = em->getMousePos();
|
||||
const GfxFrameout *gfxFrameout = g_sci->_gfxFrameout;
|
||||
|
||||
// This will clamp `mousePos` according to the restricted zone,
|
||||
@ -226,6 +227,7 @@ SciEvent EventManager::getScummVMEvent() {
|
||||
}
|
||||
} else {
|
||||
#endif
|
||||
mousePos = g_sci->_gfxScreen->gfxDriver()->getMousePos();
|
||||
g_sci->_gfxScreen->adjustBackUpscaledCoordinates(mousePos.y, mousePos.x);
|
||||
#if ENABLE_SCI32
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user