diff options
Diffstat (limited to 'apps/plugins/text_viewer')
-rw-r--r-- | apps/plugins/text_viewer/text_viewer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/text_viewer/text_viewer.c b/apps/plugins/text_viewer/text_viewer.c index 3c04499b18..29a2e6d12a 100644 --- a/apps/plugins/text_viewer/text_viewer.c +++ b/apps/plugins/text_viewer/text_viewer.c | |||
@@ -31,7 +31,9 @@ | |||
31 | enum plugin_status plugin_start(const void* file) | 31 | enum plugin_status plugin_start(const void* file) |
32 | { | 32 | { |
33 | int button; | 33 | int button; |
34 | #if defined(TV_AUTOSCROLL_PRE) | ||
34 | int lastbutton = BUTTON_NONE; | 35 | int lastbutton = BUTTON_NONE; |
36 | #endif | ||
35 | bool autoscroll = false; | 37 | bool autoscroll = false; |
36 | long old_tick; | 38 | long old_tick; |
37 | bool done = false; | 39 | bool done = false; |
@@ -211,7 +213,9 @@ enum plugin_status plugin_start(const void* file) | |||
211 | } | 213 | } |
212 | if (button != BUTTON_NONE) | 214 | if (button != BUTTON_NONE) |
213 | { | 215 | { |
216 | #if defined(TV_AUTOSCROLL_PRE) | ||
214 | lastbutton = button; | 217 | lastbutton = button; |
218 | #endif | ||
215 | rb->yield(); | 219 | rb->yield(); |
216 | } | 220 | } |
217 | if (autoscroll) | 221 | if (autoscroll) |