X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=eebf70c43bcb18fead15ef7bf6058482bf6ae090;hb=db796e071bbe21db45ac516e55eaf2ea7cee33d5;hp=a73dec0e9d0042f8e042e4b551094732abfe2ab6;hpb=35dd23cea816adff3891d62ea47aec6aa0aba990;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index a73dec0e..eebf70c4 100644 --- a/src/init.c +++ b/src/init.c @@ -295,7 +295,7 @@ void InitFontGraphicInfo() if (graphic_info[graphic].anim_frames < MIN_NUM_CHARS_PER_FONT) { graphic_info[graphic].anim_frames = DEFAULT_NUM_CHARS_PER_FONT; - graphic_info[graphic].anim_frames_per_line= DEFAULT_NUM_CHARS_PER_LINE; + graphic_info[graphic].anim_frames_per_line = DEFAULT_NUM_CHARS_PER_LINE; } /* copy font relevant information from graphics information */ @@ -4249,8 +4249,8 @@ void Execute_Command(char *command) } else { - /* print valid modes */ printf("Available Modes:\n"); + for(i = 0; modes[i]; i++) printf(" %d x %d\n", modes[i]->w, modes[i]->h); } @@ -4455,6 +4455,7 @@ void InitGfx() { char *filename_font_initial = NULL; Bitmap *bitmap_font_initial = NULL; + int font_height; int i, j; /* determine settings for initial font (for displaying startup messages) */ @@ -4514,8 +4515,11 @@ void InitGfx() InitFontGraphicInfo(); + font_height = getFontHeight(FC_RED); + DrawInitText(getProgramInitString(), 20, FC_YELLOW); DrawInitText(PROGRAM_COPYRIGHT_STRING, 50, FC_RED); + DrawInitText(PROGRAM_WEBSITE_STRING, WIN_YSIZE - 20 - font_height, FC_RED); DrawInitText("Loading graphics:", 120, FC_GREEN); }