forked from len0rd/rockbox
Use core splash for PictureFlow's error_wait, exit error display 2s after any keypress, remove DEBUGF committed accidentally.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21113 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b6bea2dd32
commit
371af77a4a
1 changed files with 3 additions and 8 deletions
|
@ -724,7 +724,6 @@ int create_album_index(void)
|
||||||
rb->strcpy(buf, tcs.result);
|
rb->strcpy(buf, tcs.result);
|
||||||
buf_size -= l;
|
buf_size -= l;
|
||||||
buf = l + (char *)buf;
|
buf = l + (char *)buf;
|
||||||
DEBUGF("%lX: %s\n", tcs.idxfd[tag_album] ? rb->lseek(tcs.idxfd[tag_album], 0, SEEK_CUR) : -1, tcs.result);
|
|
||||||
album[-album_count].seek = tcs.result_seek;
|
album[-album_count].seek = tcs.result_seek;
|
||||||
old_l = l;
|
old_l = l;
|
||||||
album_count++;
|
album_count++;
|
||||||
|
@ -2362,14 +2361,10 @@ void draw_album_text(void)
|
||||||
*/
|
*/
|
||||||
void error_wait(const char *message)
|
void error_wait(const char *message)
|
||||||
{
|
{
|
||||||
rb->lcd_clear_display();
|
rb->splashf(0, "%s. Press any button to continue.", message);
|
||||||
int y;
|
while (rb->get_action(CONTEXT_STD, 1) == ACTION_NONE)
|
||||||
rb->lcd_getstringsize(message, NULL, &y);
|
|
||||||
rb->lcd_putsxy(0, 0, message);
|
|
||||||
rb->lcd_putsxy(0, y, "Press SELECT to exit.");
|
|
||||||
rb->lcd_update();
|
|
||||||
while (rb->get_action(CONTEXT_STD, 1) != ACTION_STD_OK)
|
|
||||||
rb->yield();
|
rb->yield();
|
||||||
|
rb->sleep(2 * HZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue