diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-29 11:05:36 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-29 11:05:36 +0000 |
commit | 07d03729ff537eca8429cea27c1f2d15f04ec54f (patch) | |
tree | 2f72e7d67f3da45710c2dd302f16654b80aa1016 /apps/plugins/text_viewer/tv_pager.c | |
parent | 7195f3a30cc73e1540a590c519c9a2ecec137952 (diff) | |
download | rockbox-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_pager.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_pager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_pager.c b/apps/plugins/text_viewer/tv_pager.c index e7016c7fef..a91d9d91ab 100644 --- a/apps/plugins/text_viewer/tv_pager.c +++ b/apps/plugins/text_viewer/tv_pager.c | |||
@@ -73,7 +73,7 @@ static off_t tv_get_fpos(int page) | |||
73 | return 0; | 73 | return 0; |
74 | } | 74 | } |
75 | 75 | ||
76 | static void tv_change_preferences(const struct tv_preferences *oldp) | 76 | static int tv_change_preferences(const struct tv_preferences *oldp) |
77 | { | 77 | { |
78 | (void)oldp; | 78 | (void)oldp; |
79 | 79 | ||
@@ -83,6 +83,7 @@ static void tv_change_preferences(const struct tv_preferences *oldp) | |||
83 | max_page = TV_MAX_PAGE - 1; | 83 | max_page = TV_MAX_PAGE - 1; |
84 | tv_set_fpos(cur_pos.page, 0); | 84 | tv_set_fpos(cur_pos.page, 0); |
85 | tv_seek(0, SEEK_SET); | 85 | tv_seek(0, SEEK_SET); |
86 | return TV_CALLBACK_OK; | ||
86 | } | 87 | } |
87 | 88 | ||
88 | bool tv_init_pager(unsigned char **buf, size_t *size) | 89 | bool tv_init_pager(unsigned char **buf, size_t *size) |