diff options
author | James Brown | 2002-04-17 15:24:48 +0000 |
---|---|---|
committer | James Brown | 2002-04-17 15:24:48 +0000 |
commit | 72663cdcf4df7a529ee746ee90973d3fc7c849ed (patch) | |
tree | 485ecf5117a27acb8d83da29944d359ef2a2fe5b /gui.cpp | |
parent | b7bc0edfba03c03ddd8c4d9cad0c271b4e64d101 (diff) | |
download | scummvm-rg350-72663cdcf4df7a529ee746ee90973d3fc7c849ed.tar.gz scummvm-rg350-72663cdcf4df7a529ee746ee90973d3fc7c849ed.tar.bz2 scummvm-rg350-72663cdcf4df7a529ee746ee90973d3fc7c849ed.zip |
Fix cursor in GUI for bomp-cursor games (eg, sam and max)
svn-id: r3975
Diffstat (limited to 'gui.cpp')
-rw-r--r-- | gui.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -825,11 +825,14 @@ void Gui::loop() { if (_active == 1) { _active++; - draw(0, 200); // was 100 - _old_cursor_mode = _s->_system->show_mouse(true); + draw(0, 200); // was 100 _s->pauseSounds(true); - } + _old_cursor_mode = _s->_system->show_mouse(true); + _s->_cursorAnimate++; + _s->gdi._cursorActive = 1; + } + _s->animateCursor(); _s->getKeyInput(0); if (_s->_mouseButStat & MBS_LEFT_CLICK) { leftMouseClick(_s->mouse.x, _s->mouse.y); @@ -858,7 +861,7 @@ void Gui::close() { _s->_fullRedraw = true; _s->_completeScreenRedraw = true; - + _s->_cursorAnimate--; _s->_system->show_mouse(_old_cursor_mode); _s->pauseSounds(false); |