From 43abd8d2e9f1e6dee97052397d7dddc6f028ff46 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 4 Dec 2009 12:55:53 +0000 Subject: SCI: Fixed kSetCursor (fixes qfg1vga menu immediately disappearing after opening) svn-id: r46248 --- engines/sci/gui/gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/gui') diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 2cc361f348..28d6a35064 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -761,14 +761,14 @@ void SciGui::moveCursor(Common::Point pos) { if (pos.x > _screen->_width || pos.y > _screen->_height) { warning("attempt to place cursor at invalid coordinates (%d, %d)", pos.y, pos.x); - return; // Not fatal + return; } _cursor->setPosition(pos); + // Trigger event reading to make sure the mouse coordinates will // actually have changed the next time we read them. - //gfxop_get_event(_s->gfx_state, SCI_EVT_PEEK); - // FIXME! + gfxop_get_event(_s->gfx_state, SCI_EVT_PEEK); } void SciGui::setCursorZone(Common::Rect zone) { -- cgit v1.2.3