diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_action.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_action.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_action.c b/apps/plugins/text_viewer/tv_action.c index 546ee99842..88338feb1e 100644 --- a/apps/plugins/text_viewer/tv_action.c +++ b/apps/plugins/text_viewer/tv_action.c | |||
@@ -30,10 +30,15 @@ | |||
30 | 30 | ||
31 | bool tv_init(const unsigned char *file) | 31 | bool tv_init(const unsigned char *file) |
32 | { | 32 | { |
33 | size_t size; | ||
34 | |||
35 | /* get the plugin buffer */ | ||
36 | unsigned char *buf = rb->plugin_get_buffer(&size); | ||
37 | |||
33 | tv_init_bookmark(); | 38 | tv_init_bookmark(); |
34 | 39 | ||
35 | /* initialize modules */ | 40 | /* initialize modules */ |
36 | if (!tv_init_window()) | 41 | if (!tv_init_window(&buf, &size)) |
37 | return false; | 42 | return false; |
38 | 43 | ||
39 | /* load the preferences and bookmark */ | 44 | /* load the preferences and bookmark */ |