diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-07-21 06:51:55 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-07-21 06:51:55 +0000 |
commit | 22332e8c0a463ae228c21a626e232887af9d5b79 (patch) | |
tree | 2eb3d28b17e8b080a356e26258f7b54cccd2cf87 /apps/hosted | |
parent | d1fd4f08f56f6dd46b26b1f41baff425ca71d498 (diff) | |
download | rockbox-22332e8c0a463ae228c21a626e232887af9d5b79.tar.gz rockbox-22332e8c0a463ae228c21a626e232887af9d5b79.zip |
Copy yesno_pop to hosted/yesno,c which is mildly annoying, maybe do a better fix later
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/hosted')
-rw-r--r-- | apps/hosted/android/yesno.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/hosted/android/yesno.c b/apps/hosted/android/yesno.c index f08e7b2dfb..105f4af688 100644 --- a/apps/hosted/android/yesno.c +++ b/apps/hosted/android/yesno.c | |||
@@ -118,3 +118,16 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, | |||
118 | } | 118 | } |
119 | 119 | ||
120 | #endif | 120 | #endif |
121 | |||
122 | /* Function to manipulate all yesno dialogues. | ||
123 | This function needs the output text as an argument. */ | ||
124 | bool yesno_pop(const char* text) | ||
125 | { | ||
126 | int i; | ||
127 | const char *lines[]={text}; | ||
128 | const struct text_message message={lines, 1}; | ||
129 | bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES); | ||
130 | FOR_NB_SCREENS(i) | ||
131 | screens[i].clear_viewport(); | ||
132 | return ret; | ||
133 | } | ||