diff options
author | Paul Gilbert | 2015-06-03 19:06:14 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-03 19:06:14 -0400 |
commit | dce570c7e99bf1938d15cf74bc0945819099a8db (patch) | |
tree | a86ad498dc3018f384ade69cdd2ca7b75ed96775 /engines | |
parent | 3dac0c66462fa50e577d29e504d99fdb0a796866 (diff) | |
download | scummvm-rg350-dce570c7e99bf1938d15cf74bc0945819099a8db.tar.gz scummvm-rg350-dce570c7e99bf1938d15cf74bc0945819099a8db.tar.bz2 scummvm-rg350-dce570c7e99bf1938d15cf74bc0945819099a8db.zip |
SHERLOCK: Fix resetting cursor when resetting UI
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_user_interface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp index 0bb236484c..16f16594f1 100644 --- a/engines/sherlock/scalpel/scalpel_user_interface.cpp +++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp @@ -392,10 +392,15 @@ void ScalpelUserInterface::depressButton(int num) { } void ScalpelUserInterface::restoreButton(int num) { + Events &events = *_vm->_events; Screen &screen = *_vm->_screen; Common::Point pt(MENU_POINTS[num][0], MENU_POINTS[num][1]); Graphics::Surface &frame = (*_controls)[num]._frame; + // Reset the cursor + events.setCursor(ARROW); + + // Restore the UI on the back buffer screen._backBuffer1.blitFrom(screen._backBuffer2, pt, Common::Rect(pt.x, pt.y, pt.x + 90, pt.y + 19)); screen.slamArea(pt.x, pt.y, pt.x + frame.w, pt.y + frame.h); |