From 56d29e89778f30e87a20bb1e67fd6854fe19684c Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Mon, 22 Feb 2010 07:17:15 +0000 Subject: 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 --- apps/plugins/superdom.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'apps/plugins/superdom.c') diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index 0018b9c..d26e988 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; } -- cgit v1.1