From 3cf1afb459e29747461e21ba7db971a9c72fc9ff Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 24 Apr 2015 20:26:33 -0500 Subject: SHERLOCK: Fix minor gfx glitch when sliding up closing dialogs --- engines/sherlock/user_interface.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/sherlock') 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; -- cgit v1.2.3