diff options
author | Paul Gilbert | 2015-05-19 08:01:06 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-05-19 08:01:06 -0400 |
commit | fa35249a240d7bdfe5f5b7eb9ae073126d5080c4 (patch) | |
tree | e9243f68d9fcd25accbbf3cad3b8387e8e038fc9 /engines/sherlock/journal.cpp | |
parent | dac49ddab496b9e5ca0f6589ea7b5ad906faa464 (diff) | |
download | scummvm-rg350-fa35249a240d7bdfe5f5b7eb9ae073126d5080c4.tar.gz scummvm-rg350-fa35249a240d7bdfe5f5b7eb9ae073126d5080c4.tar.bz2 scummvm-rg350-fa35249a240d7bdfe5f5b7eb9ae073126d5080c4.zip |
SHERLOCK: More syntactic fixes
Diffstat (limited to 'engines/sherlock/journal.cpp')
-rw-r--r-- | engines/sherlock/journal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp index 0a0144996d..7afa60d396 100644 --- a/engines/sherlock/journal.cpp +++ b/engines/sherlock/journal.cpp @@ -1121,8 +1121,8 @@ int Journal::getSearchString(bool printError) { } else if (keyState.keycode == Common::KEYCODE_ESCAPE) { screen.vgaBar(Common::Rect(xp, yp, xp + 8, yp + 9), BUTTON_MIDDLE); done = -1; - } else if (keyState.ascii >= ' ' && keyState.keycode <= 'z' && keyState.keycode != Common::KEYCODE_AT && - name.size() < JOURNAL_SEACRH_MAX_CHARS && (xp + screen.charWidth(keyState.keycode)) < JOURNAL_SEARCH_RIGHT) { + } else if (keyState.ascii >= ' ' && keyState.ascii <= 'z' && keyState.keycode != Common::KEYCODE_AT && + name.size() < JOURNAL_SEACRH_MAX_CHARS && (xp + screen.charWidth(keyState.ascii)) < JOURNAL_SEARCH_RIGHT) { char ch = toupper(keyState.ascii); screen.vgaBar(Common::Rect(xp, yp, xp + 8, yp + 9), BUTTON_MIDDLE); screen.print(Common::Point(xp, yp), TALK_FOREGROUND, "%c", ch); |