mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
some changes to use of display_text.
* add parameter, wait_key to display_text(). - set this true to wait button press after all words is displayed. * use ARRAYLEN macro instead of #define WORDS * add macro to indicate end of style array. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24846 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
04067fd7a0
commit
56d29e8977
13 changed files with 91 additions and 166 deletions
|
@ -863,7 +863,6 @@ static void play_animation(int input)
|
|||
|
||||
static void instructions()
|
||||
{
|
||||
#define WORDS (sizeof help_text / sizeof (char*))
|
||||
static char* help_text[] = {
|
||||
#if 0
|
||||
/* Not sure if we want to include this? */
|
||||
|
@ -879,7 +878,7 @@ static void instructions()
|
|||
"The", "game", "ends", "when", "robotfindskitten.", "", "",
|
||||
"Press", "any", "key", "to", "start",
|
||||
};
|
||||
display_text(WORDS, help_text, NULL, NULL);
|
||||
display_text(ARRAYLEN(help_text), help_text, NULL, NULL, false);
|
||||
pause();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue