aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/journal.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-18 18:04:45 -0400
committerPaul Gilbert2015-05-18 18:04:45 -0400
commitffe82a40e820f90e53cfba06e399bf88005e9f04 (patch)
tree0dfb087db4e18dd799c872fc811a30910ff91e3d /engines/sherlock/journal.cpp
parent0aebac9174f935e535b8e133efde43bd94be5b27 (diff)
parentda9333a924d945c3bd59eb1f8d3dd17d86b5d572 (diff)
downloadscummvm-rg350-ffe82a40e820f90e53cfba06e399bf88005e9f04.tar.gz
scummvm-rg350-ffe82a40e820f90e53cfba06e399bf88005e9f04.tar.bz2
scummvm-rg350-ffe82a40e820f90e53cfba06e399bf88005e9f04.zip
Merge pull request #8 from sirlemonhead/sherlock
SHERLOCK: Fix code formatting issues and comment spelling mistakes
Diffstat (limited to 'engines/sherlock/journal.cpp')
-rw-r--r--engines/sherlock/journal.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp
index 3b63294b06..7e0120c67d 100644
--- a/engines/sherlock/journal.cpp
+++ b/engines/sherlock/journal.cpp
@@ -250,7 +250,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 >= ' ');
@@ -900,7 +900,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()) {
@@ -924,14 +923,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();
@@ -953,7 +952,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) {