Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 19th, 2010  |  syntax: None  |  size: 0.91 KB  |  hits: 91  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
  2. index 4323bb0..3a1ffd4 100644
  3. --- a/apps/gui/bitmap/list.c
  4. +++ b/apps/gui/bitmap/list.c
  5. @@ -238,13 +238,16 @@ void list_draw(struct screen *display, struct gui_synclis
  6.      {
  7.          /* do the text */
  8.          unsigned const char *s;
  9. -        char entry_buffer[MAX_PATH];
  10. +        char entry_buffer[MAX_PATH], realbuf[MAX_PATH];
  11.          unsigned char *entry_name;
  12.          int text_pos = 0;
  13.          int line = i - start;
  14.          s = list->callback_get_item_name(i, list->data, entry_buffer,
  15.                                           sizeof(entry_buffer));
  16.          entry_name = P2STR(s);
  17. +        snprintf(realbuf, sizeof(realbuf), "   %s", entry_name); /* put more s
  18. +        entry_name = realbuf;
  19. +        
  20.          display->set_viewport(list_text_vp);
  21.          style = STYLE_DEFAULT;
  22.          /* position the string at the correct offset place */