1
0
Fork 0
forked from len0rd/rockbox

Eliminate C99 variable defs

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11922 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Greg White 2007-01-05 18:44:32 +00:00
parent c76d3ae098
commit f7afb1b3b0

View file

@ -475,7 +475,11 @@ static void show_details (void)
static void init_rockblox (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; level = 1;
lines = 0; lines = 0;
@ -494,15 +498,13 @@ static void init_rockblox (void)
pgfx_fillrect (15, 7, 2, 7); pgfx_fillrect (15, 7, 2, 7);
pgfx_update(); pgfx_update();
#endif #endif
show_details ();
#ifdef HIGH_SCORE_Y #ifdef HIGH_SCORE_Y
int i; show_details ();
char str[25]; /* for strings */ for (i = MAX_HIGH_SCORES-1; i>=0; i--)
for (i = MAX_HIGH_SCORES-1; i>=0; i--) {
{ rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level);
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);
rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str); }
}
#endif #endif
} }
@ -832,7 +834,7 @@ static int rockblox_loop (void)
return PLUGIN_OK; return PLUGIN_OK;
#if defined(ROCKBLOX_ROTATE) #if defined(ROCKBLOX_ROTATE)
case ROCKBLOX_ROTATE: case ROCKBLOX_ROTATE:
#endif #endif
case ROCKBLOX_ROTATE_RIGHT: case ROCKBLOX_ROTATE_RIGHT:
case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT: case ROCKBLOX_ROTATE_RIGHT | BUTTON_REPEAT: