From f7afb1b3b0626060d2ca3f52b163f5cb0fb39ac2 Mon Sep 17 00:00:00 2001 From: Greg White Date: Fri, 5 Jan 2007 18:44:32 +0000 Subject: Eliminate C99 variable defs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11922 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/rockblox.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'apps') diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index 42d5039232..c0c52a82b2 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c @@ -475,7 +475,11 @@ static void show_details (void) static void init_rockblox (void) { - highscore_update(score, level, Highest, MAX_HIGH_SCORES); +#ifdef HIGH_SCORE_Y + int i; + char str[25]; /* for strings */ +#endif + highscore_update(score, level, Highest, MAX_HIGH_SCORES); level = 1; lines = 0; @@ -494,15 +498,13 @@ static void init_rockblox (void) pgfx_fillrect (15, 7, 2, 7); pgfx_update(); #endif - show_details (); #ifdef HIGH_SCORE_Y - int i; - char str[25]; /* for strings */ - for (i = MAX_HIGH_SCORES-1; i>=0; i--) - { - rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level); - rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str); - } + show_details (); + for (i = MAX_HIGH_SCORES-1; i>=0; i--) + { + rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level); + rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str); + } #endif } @@ -832,7 +834,7 @@ static int rockblox_loop (void) return PLUGIN_OK; #if defined(ROCKBLOX_ROTATE) - case ROCKBLOX_ROTATE: + case ROCKBLOX_ROTATE: #endif case ROCKBLOX_ROTATE_RIGHT: case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT: -- cgit v1.2.3