From: Bill Kendrick Date: Sun, 15 Feb 2004 10:23:16 +0000 (+0000) Subject: Fixed inappropriate variable decl. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d6aa8d07c0e97159534f80936d09277e2dc85a89;p=supertux.git Fixed inappropriate variable decl. SVN-Revision: 121 --- diff --git a/src/text.c b/src/text.c index 6a31ed7a5..0e2b84582 100644 --- a/src/text.c +++ b/src/text.c @@ -34,12 +34,14 @@ void text_load(text_type* ptext, char* file) void text_draw(text_type* ptext, char* text, int x, int y, int shadowsize, int update) { + int len; + int i; if(shadowsize != 0) text_draw(&black_text,text,x+shadowsize,y+shadowsize, 0, update); - int len = strlen(text); - int i; + len = strlen(text); + for( i = 0; i < len; ++i) { if( text[i] >= 'A' && text[i] <= 'Z')