mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
text_viewer: callback functions are changed to the function that returns int value.
And the text viewer quits when the problem occurs by callback functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27172 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7195f3a30c
commit
07d03729ff
13 changed files with 56 additions and 25 deletions
|
|
@ -98,15 +98,16 @@ static int tv_find_bookmark(const struct tv_screen_pos *pos)
|
|||
return -1;
|
||||
}
|
||||
|
||||
static void tv_change_preferences(const struct tv_preferences *oldp)
|
||||
static int tv_change_preferences(const struct tv_preferences *oldp)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (oldp == NULL)
|
||||
return;
|
||||
|
||||
for (i = 0; i < bookmark_count; i++)
|
||||
tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos);
|
||||
if (oldp)
|
||||
{
|
||||
for (i = 0; i < bookmark_count; i++)
|
||||
tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos);
|
||||
}
|
||||
return TV_CALLBACK_OK;
|
||||
}
|
||||
|
||||
void tv_init_bookmark(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue