aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/user_interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-24 20:14:13 -0400
committerPaul Gilbert2015-03-24 20:14:13 -0400
commit97e58fb0171af885019d997493db33fab9af0091 (patch)
tree5aa342aab2b5a9df5eff87caa86010eff898fdad /engines/sherlock/user_interface.cpp
parentf2ee94c0ab646d3efe93e0c782494f5888d7cc36 (diff)
downloadscummvm-rg350-97e58fb0171af885019d997493db33fab9af0091.tar.gz
scummvm-rg350-97e58fb0171af885019d997493db33fab9af0091.tar.bz2
scummvm-rg350-97e58fb0171af885019d997493db33fab9af0091.zip
SHERLOCK: Fix display of scene hotspots
Diffstat (limited to 'engines/sherlock/user_interface.cpp')
-rw-r--r--engines/sherlock/user_interface.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sherlock/user_interface.cpp b/engines/sherlock/user_interface.cpp
index 1f201c74b8..661604e4bf 100644
--- a/engines/sherlock/user_interface.cpp
+++ b/engines/sherlock/user_interface.cpp
@@ -268,7 +268,8 @@ void UserInterface::handleInput() {
// The mouse was clicked in the playing area with no action buttons down.
// Check if the mouse was clicked in a script zone. If it was,
// then execute the script. Otherwise, walk to the given position
- if (scene.checkForZones(pt, SCRIPT_ZONE) != 0) {
+ if (scene.checkForZones(pt, SCRIPT_ZONE) != 0 ||
+ scene.checkForZones(pt, NOWALK_ZONE) != 0) {
// Mouse clicked in script zone
events._pressed = events._released = false;
} else {
@@ -431,8 +432,8 @@ void UserInterface::toggleButton(int num) {
*/
void UserInterface::clearInfo() {
if (_infoFlag) {
- _vm->_screen->fillRect(16, INFO_LINE, SHERLOCK_SCREEN_WIDTH - 20, INFO_LINE + 9,
- INFO_BLACK);
+ _vm->_screen->bar(Common::Rect(16, INFO_LINE, SHERLOCK_SCREEN_WIDTH - 20,
+ INFO_LINE + 9), INFO_BLACK);
_infoFlag = false;
_oldLook = -1;
}