diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-02-22 13:45:24 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-02-22 13:45:24 +0000 |
commit | c1bb06c3af4c5277e4a08c0084da86a69bc9d127 (patch) | |
tree | 28b3e52221e064c4f08a2229a2f7df2e4fe17263 /apps/plugins/rockblox.c | |
parent | adf5bbdc46529785ae988944f005863823b26722 (diff) |
plugin: implement highscore_show for player and use it in rockblox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24861 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r-- | apps/plugins/rockblox.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index 6bff1ea5a2..d1dea6cd28 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c @@ -1282,11 +1282,7 @@ static int rockblox_menu(void) return 1; break; case 3: -#ifdef HAVE_LCD_BITMAP highscore_show(MAX_HIGH_SCORES, highest, MAX_HIGH_SCORES, true); -#else - rb->splashf(2*HZ, "High Score: %d", highest[0].score); -#endif break; case 4: if (playback_control(NULL)) @@ -1511,17 +1507,14 @@ enum plugin_status plugin_start (const void *parameter) resume_file = resume; while(!rockblox_loop()) { if(!resume) { - int position = highscore_update(rockblox_status.score, rockblox_status.level, "", highest, - MAX_HIGH_SCORES); + int position = highscore_update(rockblox_status.score, + rockblox_status.level, "", + highest, MAX_HIGH_SCORES); if (position == 0) { rb->splash(HZ*2, "New High Score"); } if (position != -1) { -#ifdef HAVE_LCD_BITMAP highscore_show(position, highest, MAX_HIGH_SCORES, true); -#else - rb->splashf(2*HZ, "High Score: %d", highest[position].score); -#endif } } } |