Skip to content

Commit

Permalink
SHERLOCK: Journal searches are uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 17, 2015
1 parent f55ff7b commit 12f260d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engines/sherlock/journal.cpp
Expand Up @@ -1139,10 +1139,11 @@ int Journal::getFindName(bool printError) {
if (keyState.keycode >= Common::KEYCODE_SPACE && keyState.keycode <= Common::KEYCODE_z
&& keyState.keycode != Common::KEYCODE_AT && name.size() < 50
&& (xp + screen.charWidth(keyState.keycode)) < 296) {
char ch = toupper(keyState.keycode);
screen.vgaBar(Common::Rect(xp, yp, xp + 8, yp + 9), BUTTON_MIDDLE);
screen.print(Common::Point(xp, yp), TALK_FOREGROUND, "%c", (char)keyState.keycode);
xp += screen.charWidth((char)keyState.keycode);
name += (char)keyState.keycode;
screen.print(Common::Point(xp, yp), TALK_FOREGROUND, "%c", ch);
xp += screen.charWidth(ch);
name += ch;
}
}

Expand Down

0 comments on commit 12f260d

Please sign in to comment.