mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-28 14:13:24 +00:00
PETKA: update cursor when picking item
This commit is contained in:
parent
21c9bb7c8e
commit
cad05c054e
@ -87,10 +87,7 @@ void DialogInterface::restoreCursor() {
|
||||
cursor->_actionType = _savedCursorActType;
|
||||
|
||||
// original bug fix
|
||||
Common::Event ev;
|
||||
ev.type = Common::EVENT_MOUSEMOVE;
|
||||
ev.mouse = g_system->getEventManager()->getMousePos();
|
||||
_qsys->onEvent(ev);
|
||||
g_vm->pushMouseMoveEvent();
|
||||
}
|
||||
|
||||
void DialogInterface::next(int choice) {
|
||||
|
@ -90,6 +90,8 @@ void QMessageObject::processMessage(const QMessage &msg) {
|
||||
switch (msg.opcode) {
|
||||
case kAddInv:
|
||||
g_vm->getQSystem()->getCase()->addItem(msg.objId);
|
||||
// original bug fix
|
||||
g_vm->pushMouseMoveEvent();
|
||||
break;
|
||||
case kDelInv:
|
||||
g_vm->getQSystem()->getCase()->removeItem(msg.objId);
|
||||
|
@ -329,4 +329,11 @@ void PetkaEngine::pauseEngineIntern(bool pause) {
|
||||
Engine::pauseEngineIntern(pause);
|
||||
}
|
||||
|
||||
void PetkaEngine::pushMouseMoveEvent() {
|
||||
Common::Event ev;
|
||||
ev.type = Common::EVENT_MOUSEMOVE;
|
||||
ev.mouse = g_system->getEventManager()->getMousePos();
|
||||
_eventMan->pushEvent(ev);
|
||||
}
|
||||
|
||||
} // End of namespace Petka
|
||||
|
@ -112,6 +112,8 @@ public:
|
||||
Graphics::Font *getTextFont() const { return _textFont.get(); }
|
||||
Graphics::Font *getDescriptionFont() const { return _descriptionFont.get(); }
|
||||
|
||||
void pushMouseMoveEvent();
|
||||
|
||||
Common::Error loadGameState(int slot) override;
|
||||
bool canLoadGameStateCurrently() override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user