diff options
author | Robin Watts | 2008-11-24 00:36:07 +0000 |
---|---|---|
committer | Robin Watts | 2008-11-24 00:36:07 +0000 |
commit | 766a685125f8b24aca96e5d95e5ec173d68a9140 (patch) | |
tree | f1c9570f50f84bbc87a78868942fec4c8a752a34 | |
parent | a1a9702f24b868f2e5d9189ea83f00bb73272bbf (diff) | |
download | scummvm-rg350-766a685125f8b24aca96e5d95e5ec173d68a9140.tar.gz scummvm-rg350-766a685125f8b24aca96e5d95e5ec173d68a9140.tar.bz2 scummvm-rg350-766a685125f8b24aca96e5d95e5ec173d68a9140.zip |
Nintedo DS specific code: Remove function call (strlen) from loop condition.
(Spotted by Fingolfin - Thanks)
svn-id: r35163
-rw-r--r-- | backends/platform/ds/arm9/source/touchkeyboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/ds/arm9/source/touchkeyboard.cpp b/backends/platform/ds/arm9/source/touchkeyboard.cpp index 81f0e40010..ea09f174c2 100644 --- a/backends/platform/ds/arm9/source/touchkeyboard.cpp +++ b/backends/platform/ds/arm9/source/touchkeyboard.cpp @@ -263,7 +263,7 @@ void drawAutoComplete() { int y = 12 + (r % 6) * 2; int x = 0 + ((r / 6) * 16); - for (int p = 0; p < (int)strlen(autoCompleteWord[r]); p++) { + for (int p = 0; autoCompleteWord[r][p] != 0; p++) { char c = autoCompleteWord[r][p]; int tile = c - 33 + (KEYBOARD_DATA_SIZE / 32); |