diff options
author | Paul Gilbert | 2015-07-26 22:58:36 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-26 22:58:36 -0400 |
commit | 543f655bec7c068d6c4091ca57107c9ba201ed00 (patch) | |
tree | 61a26143483a956b5a9bcb564243123a981c5323 /engines | |
parent | 3712c5245102f031f0fd140ae6ed60a92f9c8778 (diff) | |
download | scummvm-rg350-543f655bec7c068d6c4091ca57107c9ba201ed00.tar.gz scummvm-rg350-543f655bec7c068d6c4091ca57107c9ba201ed00.tar.bz2 scummvm-rg350-543f655bec7c068d6c4091ca57107c9ba201ed00.zip |
SHERLOCK: RT: Fix vertical spacing in journal
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/journal.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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); |