From 99f52999968eb56e8fc9cabbf2ab4f65943ce678 Mon Sep 17 00:00:00 2001 From: Johannes Schwarz Date: Sat, 18 Jul 2009 15:16:24 +0000 Subject: Commit FS#10350, prevents to save an unchanged highscore and move the function show_highscore to the lib git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21960 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/highscore.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/plugins/lib/highscore.h') diff --git a/apps/plugins/lib/highscore.h b/apps/plugins/lib/highscore.h index a38a6f7bf3..173e389b9b 100644 --- a/apps/plugins/lib/highscore.h +++ b/apps/plugins/lib/highscore.h @@ -82,4 +82,15 @@ int highscore_update(int score, int level, const char *name, bool highscore_would_update(int score, struct highscore *scores, int num_scores); +#ifdef HAVE_LCD_BITMAP +/* Displays a nice highscore table. In general the font is FONT_UI, but if + * the highscore table doesn't fit on the the display size it uses + * FONT_SYSFIXED. + * + * - position : highlight position line + * - scores : the array of existing scores + * - num_scores: number of elements in 'scores' + */ +void highscore_show(int position, struct highscore *scores, int num_scores); +#endif #endif -- cgit v1.2.3