aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-17 17:33:42 -0400
committerPaul Gilbert2015-05-17 17:33:42 -0400
commit12f260d66ea3443dd4b0c599c42d02ed7d0324d1 (patch)
tree1efc9ff0c1fb0ad0f95c38c292ff38c8da0f644d
parentf55ff7ba2184168bcbb3131a7ae978bc75032ff0 (diff)
downloadscummvm-rg350-12f260d66ea3443dd4b0c599c42d02ed7d0324d1.tar.gz
scummvm-rg350-12f260d66ea3443dd4b0c599c42d02ed7d0324d1.tar.bz2
scummvm-rg350-12f260d66ea3443dd4b0c599c42d02ed7d0324d1.zip
SHERLOCK: Journal searches are uppercase
-rw-r--r--engines/sherlock/journal.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp
index d510738da0..b9b66e74ad 100644
--- a/engines/sherlock/journal.cpp
+++ b/engines/sherlock/journal.cpp
@@ -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;
}
}