mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
FREESCAPE: lock pointer to avoid issues when moving the camera
This commit is contained in:
parent
0e6cccb2c2
commit
f9130c3700
@ -408,7 +408,9 @@ void FreescapeEngine::processInput() {
|
||||
drawFrame();
|
||||
_savedScreen = _gfx->getScreenshot();
|
||||
_gfx->setViewport(_fullscreenViewArea);
|
||||
g_system->lockMouse(false);
|
||||
openMainMenuDialog();
|
||||
g_system->lockMouse(true);
|
||||
_gfx->setViewport(_viewArea);
|
||||
_savedScreen->free();
|
||||
delete _savedScreen;
|
||||
@ -509,6 +511,7 @@ Common::Error FreescapeEngine::run() {
|
||||
|
||||
_gfx->convertImageFormatIfNecessary(_title);
|
||||
_gfx->convertImageFormatIfNecessary(_border);
|
||||
g_system->lockMouse(true);
|
||||
|
||||
// Simple main event loop
|
||||
int saveSlot = ConfMan.getInt("save_slot");
|
||||
|
@ -966,11 +966,15 @@ void DrillerEngine::drawInfoMenu() {
|
||||
case Common::EVENT_KEYDOWN:
|
||||
if (event.kbd.keycode == Common::KEYCODE_l) {
|
||||
_gfx->setViewport(_fullscreenViewArea);
|
||||
g_system->lockMouse(false);
|
||||
loadGameDialog();
|
||||
g_system->lockMouse(true);
|
||||
_gfx->setViewport(_viewArea);
|
||||
} else if (event.kbd.keycode == Common::KEYCODE_s) {
|
||||
_gfx->setViewport(_fullscreenViewArea);
|
||||
g_system->lockMouse(false);
|
||||
saveGameDialog();
|
||||
g_system->lockMouse(true);
|
||||
_gfx->setViewport(_viewArea);
|
||||
} else if (isDOS() && event.kbd.keycode == Common::KEYCODE_t) {
|
||||
// TODO
|
||||
|
Loading…
Reference in New Issue
Block a user