mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
TOLTECS: Use CursorMan instead of OSystem for showMouse
This commit is contained in:
parent
3f78e1c8d9
commit
581f0ba8b5
engines/toltecs
@ -23,6 +23,8 @@
|
||||
|
||||
// TODO: Clean up game variable handling and move it to ToltecsEngine
|
||||
|
||||
#include "graphics/cursorman.h"
|
||||
|
||||
#include "toltecs/toltecs.h"
|
||||
#include "toltecs/animation.h"
|
||||
#include "toltecs/menu.h"
|
||||
@ -608,7 +610,7 @@ void ScriptInterpreter::setGameVar(uint variable, int16 value) {
|
||||
switch (variable) {
|
||||
case 0:
|
||||
_vm->_mouseDisabled = value;
|
||||
_vm->_system->showMouse(value == 0);
|
||||
CursorMan.showMouse(value == 0);
|
||||
break;
|
||||
case 3:
|
||||
_vm->_mouseButton = value;
|
||||
@ -1062,7 +1064,7 @@ void ScriptInterpreter::sfRunOptionsScreen() {
|
||||
_vm->_palette->setDeltaPalette(_vm->_palette->getMainPalette(), 7, 0, 31, 224);
|
||||
_vm->_screen->finishTalkTextItems();
|
||||
_vm->_screen->clearSprites();
|
||||
_vm->_system->showMouse(true);
|
||||
CursorMan.showMouse(true);
|
||||
_vm->_menuSystem->run();
|
||||
_vm->_keyState.reset();
|
||||
_switchLocalDataNear = true;
|
||||
|
@ -141,7 +141,7 @@ Common::Error ToltecsEngine::run() {
|
||||
|
||||
syncSoundSettings();
|
||||
|
||||
_system->showMouse(true);
|
||||
CursorMan.showMouse(true);
|
||||
|
||||
setupSysStrings();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user