diff options
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r-- | apps/plugins/lib/simple_viewer.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/plugins/lib/simple_viewer.c b/apps/plugins/lib/simple_viewer.c index c83f005ef4..bbb0b0310d 100644 --- a/apps/plugins/lib/simple_viewer.c +++ b/apps/plugins/lib/simple_viewer.c | |||
@@ -92,7 +92,6 @@ static void calc_first_line(struct view_info *info, int line) | |||
92 | if (line < 0) | 92 | if (line < 0) |
93 | line = 0; | 93 | line = 0; |
94 | 94 | ||
95 | DEBUGF("%d -> %d\n", info->line, line); | ||
96 | if (info->line <= line) | 95 | if (info->line <= line) |
97 | { | 96 | { |
98 | ptr += info->start; | 97 | ptr += info->start; |
@@ -105,7 +104,6 @@ static void calc_first_line(struct view_info *info, int line) | |||
105 | } | 104 | } |
106 | info->start = ptr - info->text; | 105 | info->start = ptr - info->text; |
107 | info->line = i; | 106 | info->line = i; |
108 | DEBUGF("%d: %d\n", info->line, info->start); | ||
109 | } | 107 | } |
110 | 108 | ||
111 | static int init_view(struct view_info *info, | 109 | static int init_view(struct view_info *info, |
@@ -161,19 +159,15 @@ static void draw_text(struct view_info *info) | |||
161 | } | 159 | } |
162 | 160 | ||
163 | max_show = MIN(info->line_count - info->line, info->display_lines); | 161 | max_show = MIN(info->line_count - info->line, info->display_lines); |
164 | DEBUGF("draw_text: %d-%d/%d\n", | ||
165 | info->line, info->line + max_show, info->line_count); | ||
166 | text = info->text + info->start; | 162 | text = info->text + info->start; |
167 | 163 | ||
168 | for (i = 0; i < max_show; i++, lines++) | 164 | for (i = 0; i < max_show; i++, lines++) |
169 | { | 165 | { |
170 | ptr = get_next_line(text, info); | 166 | ptr = get_next_line(text, info); |
171 | DEBUGF("%d>%d-%d, ", i, text-info->text, ptr-text); | ||
172 | rb->strlcpy(output, text, ptr-text+1); | 167 | rb->strlcpy(output, text, ptr-text+1); |
173 | rb->lcd_puts(0, lines, output); | 168 | rb->lcd_puts(0, lines, output); |
174 | text = ptr; | 169 | text = ptr; |
175 | } | 170 | } |
176 | DEBUGF("\n"); | ||
177 | 171 | ||
178 | rb->lcd_update(); | 172 | rb->lcd_update(); |
179 | } | 173 | } |