aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-09-03 21:08:31 -0400
committerPaul Gilbert2015-09-03 21:08:31 -0400
commit84edf0c6a776caf1d783e8a2ef6ed5a2225e29cf (patch)
treeec0be881adfe9db2f0a96e2d4b7d744969f1b86d
parentb05127ae8207fa1f7d87631b9a4465c0400d7066 (diff)
downloadscummvm-rg350-84edf0c6a776caf1d783e8a2ef6ed5a2225e29cf.tar.gz
scummvm-rg350-84edf0c6a776caf1d783e8a2ef6ed5a2225e29cf.tar.bz2
scummvm-rg350-84edf0c6a776caf1d783e8a2ef6ed5a2225e29cf.zip
SHERLOCK: RT: Keep journal buttons disabled when searching
-rw-r--r--engines/sherlock/tattoo/tattoo_journal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/tattoo_journal.cpp b/engines/sherlock/tattoo/tattoo_journal.cpp
index 41de82871e..57d3d242e8 100644
--- a/engines/sherlock/tattoo/tattoo_journal.cpp
+++ b/engines/sherlock/tattoo/tattoo_journal.cpp
@@ -764,6 +764,7 @@ int TattooJournal::getFindName(bool printError) {
cursorY = r.top + screen.fontHeight() + 12;
drawControls(1);
+ disableControls();
// Backup the area under the text entry
Surface bgSurface(r.width() - 6, screen.fontHeight());
@@ -771,7 +772,7 @@ int TattooJournal::getFindName(bool printError) {
r.right - 3, cursorY + screen.fontHeight()));
if (printError) {
- screen.gPrint(Common::Point(r.left + (r.width() - screen.stringWidth(FIXED(TextNotFound))) / 2, cursorY),
+ screen.gPrint(Common::Point(r.left + (r.width() - screen.stringWidth(FIXED(TextNotFound))) / 2, cursorY),
INFO_TOP, "%s", FIXED(TextNotFound));
} else {
// If there was a name already entered, copy it to name and display it