aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-04-09 09:33:17 +0200
committerTorbjörn Andersson2016-04-09 09:33:17 +0200
commit64709482e6ff259fa0b42ba379106158b7d8e318 (patch)
tree09a97f53f9e14578cae3f2b4c56ff0f87329630c /engines/sherlock
parent701738e0c900453730b941a74ba80cb116dc1992 (diff)
downloadscummvm-rg350-64709482e6ff259fa0b42ba379106158b7d8e318.tar.gz
scummvm-rg350-64709482e6ff259fa0b42ba379106158b7d8e318.tar.bz2
scummvm-rg350-64709482e6ff259fa0b42ba379106158b7d8e318.zip
SHERLOCK: Fix crash when searching the Serrated Scalpel journal
As far as I can tell, the lines I removed to draw the search box are already handled by the call to makeField() above. Also, they were drawing to the wrong surface, and one of them was in the wrong direction, which is what triggered an assertion.
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/scalpel/scalpel_journal.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/engines/sherlock/scalpel/scalpel_journal.cpp b/engines/sherlock/scalpel/scalpel_journal.cpp
index d6f8021e5b..151d986d81 100644
--- a/engines/sherlock/scalpel/scalpel_journal.cpp
+++ b/engines/sherlock/scalpel/scalpel_journal.cpp
@@ -485,11 +485,6 @@ int ScalpelJournal::getSearchString(bool printError) {
screen.makeField(Common::Rect(12, 185, 307, 196));
- screen.fillRect(Common::Rect(12, 185, 307, 186), BUTTON_BOTTOM);
- screen.vLine(12, 185, 195, BUTTON_BOTTOM);
- screen.hLine(13, 195, 306, BUTTON_TOP);
- screen.hLine(306, 186, 195, BUTTON_TOP);
-
if (printError) {
screen.gPrint(Common::Point((SHERLOCK_SCREEN_WIDTH - screen.stringWidth(_fixedTextSearchNotFound)) / 2, 185),
INV_FOREGROUND, "%s", _fixedTextSearchNotFound.c_str());