diff options
author | Paul Gilbert | 2015-04-24 20:26:33 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-04-24 20:26:33 -0500 |
commit | 3cf1afb459e29747461e21ba7db971a9c72fc9ff (patch) | |
tree | cf4d205777b5338d8b0f980d0112c49e033ace2b /engines/sherlock | |
parent | 930600c85740012db40a11eb06b02b0c78356529 (diff) | |
download | scummvm-rg350-3cf1afb459e29747461e21ba7db971a9c72fc9ff.tar.gz scummvm-rg350-3cf1afb459e29747461e21ba7db971a9c72fc9ff.tar.bz2 scummvm-rg350-3cf1afb459e29747461e21ba7db971a9c72fc9ff.zip |
SHERLOCK: Fix minor gfx glitch when sliding up closing dialogs
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/user_interface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sherlock/user_interface.cpp b/engines/sherlock/user_interface.cpp index a2a356127c..12af04d608 100644 --- a/engines/sherlock/user_interface.cpp +++ b/engines/sherlock/user_interface.cpp @@ -1304,7 +1304,7 @@ void UserInterface::doInvControl() { } if (events._released || _keyboardInput) { - if ((!found && events._released) && _key == 'E') { + if ((found == 0 && events._released) || _key == 'E') { inv.freeInv(); _infoFlag = true; clearInfo(); @@ -2454,6 +2454,11 @@ void UserInterface::banishWindow(bool slideUp) { SHERLOCK_SCREEN_HEIGHT); events.delay(10); } + + // Show entire final area + screen._backBuffer1.blitFrom(screen._backBuffer2, Common::Point(0, CONTROLS_Y1), + Common::Rect(0, CONTROLS_Y1, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT)); + screen.slamRect(Common::Rect(0, CONTROLS_Y1, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT)); } _infoFlag = false; |