diff options
author | Paul Gilbert | 2016-01-29 23:02:28 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-01-29 23:02:28 -0500 |
commit | b75f6182b0596e885e4fe70719b818d9cb32694e (patch) | |
tree | 236d90dc32abc8ceef36b096b45fb95d60daa816 /engines/sherlock/tattoo/widget_files.cpp | |
parent | 171b79c2c528d03a826ab095fcd3b0ebd3236f94 (diff) | |
download | scummvm-rg350-b75f6182b0596e885e4fe70719b818d9cb32694e.tar.gz scummvm-rg350-b75f6182b0596e885e4fe70719b818d9cb32694e.tar.bz2 scummvm-rg350-b75f6182b0596e885e4fe70719b818d9cb32694e.zip |
SHERLOCK: RT: Simplify ascii char checks, since we don't support accents
Diffstat (limited to 'engines/sherlock/tattoo/widget_files.cpp')
-rw-r--r-- | engines/sherlock/tattoo/widget_files.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_files.cpp b/engines/sherlock/tattoo/widget_files.cpp index ca5e1bff93..ff8cb83dca 100644 --- a/engines/sherlock/tattoo/widget_files.cpp +++ b/engines/sherlock/tattoo/widget_files.cpp @@ -386,7 +386,7 @@ bool WidgetFiles::getFilename() { done = -1; } - if ((keyState.ascii >= ' ') && ((keyState.ascii <= 168) || (keyState.ascii == 225)) && (index < 50)) { + if ((keyState.ascii >= ' ') && (keyState.ascii <= 'z') && (index < 50)) { if (pt.x + _surface.charWidth(keyState.ascii) < _surface.w() - BUTTON_SIZE - 20) { if (insert) filename.insertChar(keyState.ascii, index); |