summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/rockblox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 16530ff337..42d5039232 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -475,8 +475,6 @@ static void show_details (void)
475 475
476static void init_rockblox (void) 476static void init_rockblox (void)
477{ 477{
478 int i;
479 char str[25]; /* for strings */
480 highscore_update(score, level, Highest, MAX_HIGH_SCORES); 478 highscore_update(score, level, Highest, MAX_HIGH_SCORES);
481 479
482 level = 1; 480 level = 1;
@@ -498,6 +496,8 @@ static void init_rockblox (void)
498#endif 496#endif
499 show_details (); 497 show_details ();
500#ifdef HIGH_SCORE_Y 498#ifdef HIGH_SCORE_Y
499 int i;
500 char str[25]; /* for strings */
501 for (i = MAX_HIGH_SCORES-1; i>=0; i--) 501 for (i = MAX_HIGH_SCORES-1; i>=0; i--)
502 { 502 {
503 rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level); 503 rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level);
@@ -814,7 +814,7 @@ static int rockblox_loop (void)
814 turned it off) */ 814 turned it off) */
815 if (rb->global_settings->backlight_timeout > 0) 815 if (rb->global_settings->backlight_timeout > 0)
816 rb->backlight_set_timeout (1); 816 rb->backlight_set_timeout (1);
817 817
818 /* get rid of the splash text */ 818 /* get rid of the splash text */
819 rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT); 819 rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT);
820 show_details (); 820 show_details ();
@@ -833,7 +833,7 @@ static int rockblox_loop (void)
833 833
834#if defined(ROCKBLOX_ROTATE) 834#if defined(ROCKBLOX_ROTATE)
835 case ROCKBLOX_ROTATE: 835 case ROCKBLOX_ROTATE:
836#endif 836#endif
837 case ROCKBLOX_ROTATE_RIGHT: 837 case ROCKBLOX_ROTATE_RIGHT:
838 case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT: 838 case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT:
839#ifdef SCROLL_WHEEL 839#ifdef SCROLL_WHEEL
@@ -963,7 +963,7 @@ enum plugin_status plugin_start (struct plugin_api *api, void *parameter)
963 rb = api; 963 rb = api;
964 964
965 rb->srand (*rb->current_tick); 965 rb->srand (*rb->current_tick);
966 966
967 /* Load HighScore if any */ 967 /* Load HighScore if any */
968 highscore_init(rb); 968 highscore_init(rb);
969 highscore_load(HIGH_SCORE,Highest,MAX_HIGH_SCORES); 969 highscore_load(HIGH_SCORE,Highest,MAX_HIGH_SCORES);