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: