aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-20 20:56:04 -0400
committerPaul Gilbert2015-05-20 20:56:04 -0400
commita57f569244b9d402e689de5e5f488da935bc4bed (patch)
treeecd3b6f36604295a8d8af3200e9af56c27e0e7ee
parente115da8f3dd4622cf0f89f55ce00af415eac251e (diff)
downloadscummvm-rg350-a57f569244b9d402e689de5e5f488da935bc4bed.tar.gz
scummvm-rg350-a57f569244b9d402e689de5e5f488da935bc4bed.tar.bz2
scummvm-rg350-a57f569244b9d402e689de5e5f488da935bc4bed.zip
SHERLOCK: Fix display of 'Text Not Found' when doing journal searches
-rw-r--r--engines/sherlock/journal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp
index 5a8338bdc8..7ff4272b82 100644
--- a/engines/sherlock/journal.cpp
+++ b/engines/sherlock/journal.cpp
@@ -1041,6 +1041,7 @@ int Journal::getSearchString(bool printError) {
if (printError) {
// Give time for user to see the message
+ events.setButtonState();
for (int idx = 0; idx < 40 && !_vm->shouldQuit() && !events.kbHit() && !events._released; ++idx) {
events.pollEvents();
events.setButtonState();
@@ -1048,7 +1049,7 @@ int Journal::getSearchString(bool printError) {
}
events.clearKeyboard();
- screen.fillRect(Common::Rect(13, 186, 306, 195), BUTTON_MIDDLE);
+ screen._backBuffer1.fillRect(Common::Rect(13, 186, 306, 195), BUTTON_MIDDLE);
if (!_find.empty()) {
screen.gPrint(Common::Point(15, 185), TALK_FOREGROUND, "%s", _find.c_str());