diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 4323bb0..3a1ffd4 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -238,13 +238,16 @@ void list_draw(struct screen *display, struct gui_synclis { /* do the text */ unsigned const char *s; - char entry_buffer[MAX_PATH]; + char entry_buffer[MAX_PATH], realbuf[MAX_PATH]; unsigned char *entry_name; int text_pos = 0; int line = i - start; s = list->callback_get_item_name(i, list->data, entry_buffer, sizeof(entry_buffer)); entry_name = P2STR(s); + snprintf(realbuf, sizeof(realbuf), " %s", entry_name); /* put more s + entry_name = realbuf; + display->set_viewport(list_text_vp); style = STYLE_DEFAULT; /* position the string at the correct offset place */