Eliminate C99 variable defs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11922 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c76d3ae098
commit
f7afb1b3b0
1 changed files with 12 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue