aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source
diff options
context:
space:
mode:
authorRobin Watts2008-11-24 00:36:07 +0000
committerRobin Watts2008-11-24 00:36:07 +0000
commit766a685125f8b24aca96e5d95e5ec173d68a9140 (patch)
treef1c9570f50f84bbc87a78868942fec4c8a752a34 /backends/platform/ds/arm9/source
parenta1a9702f24b868f2e5d9189ea83f00bb73272bbf (diff)
downloadscummvm-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
Diffstat (limited to 'backends/platform/ds/arm9/source')
-rw-r--r--backends/platform/ds/arm9/source/touchkeyboard.cpp2
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);