summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_bookmark.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-06-29 11:05:36 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-06-29 11:05:36 +0000
commit07d03729ff537eca8429cea27c1f2d15f04ec54f (patch)
tree2f72e7d67f3da45710c2dd302f16654b80aa1016 /apps/plugins/text_viewer/tv_bookmark.c
parent7195f3a30cc73e1540a590c519c9a2ecec137952 (diff)
downloadrockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.tar.gz
rockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.zip
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
Diffstat (limited to 'apps/plugins/text_viewer/tv_bookmark.c')
-rw-r--r--apps/plugins/text_viewer/tv_bookmark.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/text_viewer/tv_bookmark.c b/apps/plugins/text_viewer/tv_bookmark.c
index d569ed8d11..7e38d766ec 100644
--- a/apps/plugins/text_viewer/tv_bookmark.c
+++ b/apps/plugins/text_viewer/tv_bookmark.c
@@ -98,15 +98,16 @@ static int tv_find_bookmark(const struct tv_screen_pos *pos)
98 return -1; 98 return -1;
99} 99}
100 100
101static void tv_change_preferences(const struct tv_preferences *oldp) 101static int tv_change_preferences(const struct tv_preferences *oldp)
102{ 102{
103 int i; 103 int i;
104 104
105 if (oldp == NULL) 105 if (oldp)
106 return; 106 {
107 107 for (i = 0; i < bookmark_count; i++)
108 for (i = 0; i < bookmark_count; i++) 108 tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos);
109 tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos); 109 }
110 return TV_CALLBACK_OK;
110} 111}
111 112
112void tv_init_bookmark(void) 113void tv_init_bookmark(void)