From 543f655bec7c068d6c4091ca57107c9ba201ed00 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 26 Jul 2015 22:58:36 -0400 Subject: SHERLOCK: RT: Fix vertical spacing in journal --- engines/sherlock/journal.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp index 19fc4af8d6..dcb7641124 100644 --- a/engines/sherlock/journal.cpp +++ b/engines/sherlock/journal.cpp @@ -30,6 +30,12 @@ namespace Sherlock { +static const int TATTOO_LINE_SPACING[17] = { + 21, 21, 20, 21, 20, 21, 20, 21, 20, 21, 20, 21, 20, 20, 20, 20, 21 +}; + +/*----------------------------------------------------------------*/ + Journal *Journal::init(SherlockEngine *vm) { if (vm->getGameID() == GType_SerratedScalpel) return new Scalpel::ScalpelJournal(vm); @@ -283,8 +289,8 @@ bool Journal::drawJournal(int direction, int howFar) { if (inc) { // Move to next line + yp += IS_SERRATED_SCALPEL ? 13 : TATTOO_LINE_SPACING[lineNum]; ++lineNum; - yp += 13; } } while (lineNum < LINES_PER_PAGE && !endFlag); -- cgit v1.2.3