From: Ingo Ruhnke Date: Mon, 26 Apr 2004 15:04:22 +0000 (+0000) Subject: - fixed miss align in scrolling text X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a7037dd6ea7e5358cd00afe635fb0eba6dc55fc0;p=supertux.git - fixed miss align in scrolling text SVN-Revision: 753 --- diff --git a/src/text.cpp b/src/text.cpp index 0b90e03a6..51fe1aeb3 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -328,11 +328,11 @@ void display_text_file(char *file, Surface* surface) switch(names.item[i][0]) { case ' ': - white_small_text->drawf(names.item[i], 0, 60+screen->h+y-scroll, A_HMIDDLE, A_TOP, 1); + white_small_text->drawf(names.item[i]+1, 0, 60+screen->h+y-scroll, A_HMIDDLE, A_TOP, 1); y += white_small_text->h+ITEMS_SPACE; break; case ' ': - white_text->drawf(names.item[i], 0, 60+screen->h+y-scroll, A_HMIDDLE, A_TOP, 1); + white_text->drawf(names.item[i]+1, 0, 60+screen->h+y-scroll, A_HMIDDLE, A_TOP, 1); y += white_text->h+ITEMS_SPACE; break; case '-':