diff options
author | sirlemonhead | 2015-05-18 18:20:54 +0100 |
---|---|---|
committer | sirlemonhead | 2015-05-18 18:23:47 +0100 |
commit | da9333a924d945c3bd59eb1f8d3dd17d86b5d572 (patch) | |
tree | 74f9eb1a0a3817113773f121f223bb548d4a056b /engines/sherlock/journal.cpp | |
parent | 5e351b6bf3988b33a6af952331039083c3b2aff8 (diff) | |
download | scummvm-rg350-da9333a924d945c3bd59eb1f8d3dd17d86b5d572.tar.gz scummvm-rg350-da9333a924d945c3bd59eb1f8d3dd17d86b5d572.tar.bz2 scummvm-rg350-da9333a924d945c3bd59eb1f8d3dd17d86b5d572.zip |
SHERLOCK: Fix code formatting issues and comment spelling mistakes
Diffstat (limited to 'engines/sherlock/journal.cpp')
-rw-r--r-- | engines/sherlock/journal.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp index 2a7aeb4f2d..966ed55b81 100644 --- a/engines/sherlock/journal.cpp +++ b/engines/sherlock/journal.cpp @@ -248,7 +248,7 @@ void Journal::loadJournalFile(bool alreadyLoaded) { // Is it a control character? if (c < 128) { - // Nope. Set flag for allowing control coes to insert spaces + // Nope. Set flag for allowing control codes to insert spaces ctrlSpace = true; assert(c >= ' '); @@ -898,7 +898,6 @@ bool Journal::handleEvents(int key) { } screen.buttonPrint(Common::Point(JOURNAL_POINTS[7][2], JOURNAL_BUTTONS_Y + 11), color, true, "Last Page"); - // Print Text button if (pt.x > JOURNAL_POINTS[8][0] && pt.x < JOURNAL_POINTS[8][1] && pt.y >= (JOURNAL_BUTTONS_Y + 11) && pt.y < (JOURNAL_BUTTONS_Y + 20) && !_journal.empty()) { @@ -922,14 +921,14 @@ bool Journal::handleEvents(int key) { screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); } - if (((found == BTN_UP && events._released) || key =='U') && _up) { + if (((found == BTN_UP && events._released) || key == 'U') && _up) { // Scroll up drawJournal(1, LINES_PER_PAGE); doArrows(); screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); } - if (((found == BTN_DOWN && events._released) || key =='D') && _down) { + if (((found == BTN_DOWN && events._released) || key == 'D') && _down) { // Scroll down drawJournal(2, LINES_PER_PAGE); doArrows(); @@ -951,7 +950,6 @@ bool Journal::handleEvents(int key) { screen.buttonPrint(Common::Point(JOURNAL_POINTS[5][2], JOURNAL_BUTTONS_Y + 11), COMMAND_FOREGROUND, true, "Search"); bool notFound = false; - do { int dir; if ((dir = getFindName(notFound)) != 0) { |