diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/bitmap/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 1d2df73e09..aeaceb2780 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -216,6 +216,7 @@ void list_draw(struct screen *display, struct gui_synclist *list) | |||
216 | indent += SCROLLBAR_WIDTH; | 216 | indent += SCROLLBAR_WIDTH; |
217 | } | 217 | } |
218 | 218 | ||
219 | display->set_viewport(list_text_vp); | ||
219 | for (i=start; i<end && i<list->nb_items; i++) | 220 | for (i=start; i<end && i<list->nb_items; i++) |
220 | { | 221 | { |
221 | /* do the text */ | 222 | /* do the text */ |
@@ -246,7 +247,6 @@ void list_draw(struct screen *display, struct gui_synclist *list) | |||
246 | } | 247 | } |
247 | line_indent += indent; | 248 | line_indent += indent; |
248 | 249 | ||
249 | display->set_viewport(list_text_vp); | ||
250 | /* position the string at the correct offset place */ | 250 | /* position the string at the correct offset place */ |
251 | int item_width,h; | 251 | int item_width,h; |
252 | display->getstringsize(entry_name, &item_width, &h); | 252 | display->getstringsize(entry_name, &item_width, &h); |