SCI: fix bug no. 15242

(regression from PR 5877)
This commit is contained in:
athrxx 2024-07-02 22:08:48 +02:00
parent dfd960e3a9
commit b7147fda30

View File

@ -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
}