summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/rockblox.c22
1 files changed, 12 insertions, 10 deletions
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)
475 475
476static void init_rockblox (void) 476static void init_rockblox (void)
477{ 477{
478 highscore_update(score, level, Highest, MAX_HIGH_SCORES); 478#ifdef HIGH_SCORE_Y
479 int i;
480 char str[25]; /* for strings */
481#endif
482 highscore_update(score, level, Highest, MAX_HIGH_SCORES);
479 483
480 level = 1; 484 level = 1;
481 lines = 0; 485 lines = 0;
@@ -494,15 +498,13 @@ static void init_rockblox (void)
494 pgfx_fillrect (15, 7, 2, 7); 498 pgfx_fillrect (15, 7, 2, 7);
495 pgfx_update(); 499 pgfx_update();
496#endif 500#endif
497 show_details ();
498#ifdef HIGH_SCORE_Y 501#ifdef HIGH_SCORE_Y
499 int i; 502 show_details ();
500 char str[25]; /* for strings */ 503 for (i = MAX_HIGH_SCORES-1; i>=0; i--)
501 for (i = MAX_HIGH_SCORES-1; i>=0; i--) 504 {
502 { 505 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); 506 rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str);
504 rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str); 507 }
505 }
506#endif 508#endif
507} 509}
508 510
@@ -832,7 +834,7 @@ static int rockblox_loop (void)
832 return PLUGIN_OK; 834 return PLUGIN_OK;
833 835
834#if defined(ROCKBLOX_ROTATE) 836#if defined(ROCKBLOX_ROTATE)
835 case ROCKBLOX_ROTATE: 837 case ROCKBLOX_ROTATE:
836#endif 838#endif
837 case ROCKBLOX_ROTATE_RIGHT: 839 case ROCKBLOX_ROTATE_RIGHT:
838 case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT: 840 case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT: