diff options
author | Filippos Karapetis | 2015-12-27 22:50:09 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-12-27 22:50:09 +0200 |
commit | a7959a4ed4132c4a4f5ce7af5de1a8d075038395 (patch) | |
tree | fa344d5aecdb7b5256c04d3a1274bcb9ae07bece /engines/lab/eventman.cpp | |
parent | b0a029cd64c8e8fc6f8e9675eb04d990ff27bd9b (diff) | |
download | scummvm-rg350-a7959a4ed4132c4a4f5ce7af5de1a8d075038395.tar.gz scummvm-rg350-a7959a4ed4132c4a4f5ce7af5de1a8d075038395.tar.bz2 scummvm-rg350-a7959a4ed4132c4a4f5ce7af5de1a8d075038395.zip |
LAB: Remove superfluous mouse show/hide calls
Our mouse cursor is drawn in a separate layer, so we can draw on the
screen without needing to hide it beforehand
Diffstat (limited to 'engines/lab/eventman.cpp')
-rw-r--r-- | engines/lab/eventman.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/engines/lab/eventman.cpp b/engines/lab/eventman.cpp index d1db854863..333cedd749 100644 --- a/engines/lab/eventman.cpp +++ b/engines/lab/eventman.cpp @@ -79,16 +79,12 @@ Button *EventManager::checkButtonHit(ButtonList *buttonList, Common::Point pos) if (_vm->_isHiRes) { _hitButton = button; } else { - mouseHide(); button->_altImage->drawImage(button->_x, button->_y); - mouseShow(); for (int i = 0; i < 3; i++) _vm->waitTOF(); - mouseHide(); button->_image->drawImage(button->_x, button->_y); - mouseShow(); } return button; @@ -119,16 +115,11 @@ void EventManager::updateMouse() { if (!_hitButton) return; - mouseHide(); _hitButton->_altImage->drawImage(_hitButton->_x, _hitButton->_y); - mouseShow(); - for (int i = 0; i < 3; i++) _vm->waitTOF(); - - mouseHide(); _hitButton->_image->drawImage(_hitButton->_x, _hitButton->_y); - mouseShow(); + _hitButton = nullptr; _vm->_graphics->screenUpdate(); } |