summaryrefslogtreecommitdiffstats
path: root/apps/plugins/superdom.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-02-22 07:17:15 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-02-22 07:17:15 +0000
commit56d29e89778f30e87a20bb1e67fd6854fe19684c (patch)
tree588064022421b1094aebdc6f627a1a0f5ed4d4df /apps/plugins/superdom.c
parent04067fd7a0570692b0a25f578aaeeb5ab1cbff46 (diff)
downloadrockbox-56d29e89778f30e87a20bb1e67fd6854fe19684c.tar.gz
rockbox-56d29e89778f30e87a20bb1e67fd6854fe19684c.zip
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
Diffstat (limited to 'apps/plugins/superdom.c')
-rw-r--r--apps/plugins/superdom.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c
index 0018b9c91f..d26e98803e 100644
--- a/apps/plugins/superdom.c
+++ b/apps/plugins/superdom.c
@@ -566,7 +566,6 @@ int settings_menu(void) {
}
static int superdom_help(void) {
- int button;
static char* help_text[] = {
"Super", "domination", "is", "a", "turn", "based", "strategy", "game,",
"where", "the", "aim", "is", "to", "overpower", "the", "computer",
@@ -580,15 +579,8 @@ static int superdom_help(void) {
"and", "number", "of", "troops", "on", "them.",
};
- if (display_text(ARRAYLEN(help_text), help_text, NULL, NULL))
+ if (display_text(ARRAYLEN(help_text), help_text, NULL, NULL, true))
return RET_VAL_USB;
- do {
- button = rb->button_get(true);
- if ( rb->default_event_handler( button ) == SYS_USB_CONNECTED )
- return RET_VAL_USB;
- } while( ( button == BUTTON_NONE )
- || ( button & (BUTTON_REL|BUTTON_REPEAT) ) );
-
return RET_VAL_OK;
}