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
This commit is contained in:
parent
d1fd4f08f5
commit
22332e8c0a
1 changed files with 13 additions and 0 deletions
|
@ -118,3 +118,16 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* Function to manipulate all yesno dialogues.
|
||||
This function needs the output text as an argument. */
|
||||
bool yesno_pop(const char* text)
|
||||
{
|
||||
int i;
|
||||
const char *lines[]={text};
|
||||
const struct text_message message={lines, 1};
|
||||
bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES);
|
||||
FOR_NB_SCREENS(i)
|
||||
screens[i].clear_viewport();
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue