forked from len0rd/rockbox
Fix build warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11921 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7599fb6871
commit
c76d3ae098
1 changed files with 5 additions and 5 deletions
|
@ -475,8 +475,6 @@ static void show_details (void)
|
||||||
|
|
||||||
static void init_rockblox (void)
|
static void init_rockblox (void)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
char str[25]; /* for strings */
|
|
||||||
highscore_update(score, level, Highest, MAX_HIGH_SCORES);
|
highscore_update(score, level, Highest, MAX_HIGH_SCORES);
|
||||||
|
|
||||||
level = 1;
|
level = 1;
|
||||||
|
@ -498,6 +496,8 @@ static void init_rockblox (void)
|
||||||
#endif
|
#endif
|
||||||
show_details ();
|
show_details ();
|
||||||
#ifdef HIGH_SCORE_Y
|
#ifdef HIGH_SCORE_Y
|
||||||
|
int i;
|
||||||
|
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);
|
||||||
|
@ -814,7 +814,7 @@ static int rockblox_loop (void)
|
||||||
turned it off) */
|
turned it off) */
|
||||||
if (rb->global_settings->backlight_timeout > 0)
|
if (rb->global_settings->backlight_timeout > 0)
|
||||||
rb->backlight_set_timeout (1);
|
rb->backlight_set_timeout (1);
|
||||||
|
|
||||||
/* get rid of the splash text */
|
/* get rid of the splash text */
|
||||||
rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT);
|
rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT);
|
||||||
show_details ();
|
show_details ();
|
||||||
|
@ -833,7 +833,7 @@ static int rockblox_loop (void)
|
||||||
|
|
||||||
#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:
|
||||||
#ifdef SCROLL_WHEEL
|
#ifdef SCROLL_WHEEL
|
||||||
|
@ -963,7 +963,7 @@ enum plugin_status plugin_start (struct plugin_api *api, void *parameter)
|
||||||
rb = api;
|
rb = api;
|
||||||
|
|
||||||
rb->srand (*rb->current_tick);
|
rb->srand (*rb->current_tick);
|
||||||
|
|
||||||
/* Load HighScore if any */
|
/* Load HighScore if any */
|
||||||
highscore_init(rb);
|
highscore_init(rb);
|
||||||
highscore_load(HIGH_SCORE,Highest,MAX_HIGH_SCORES);
|
highscore_load(HIGH_SCORE,Highest,MAX_HIGH_SCORES);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue