X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=c8c288a12e51651c1baaf6494abb28a35de5fd97;hb=38ea4e57bc9b730abf7a15f8cc235465e6f0ad4c;hp=a73dec0e9d0042f8e042e4b551094732abfe2ab6;hpb=35dd23cea816adff3891d62ea47aec6aa0aba990;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index a73dec0e..c8c288a1 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) */ @@ -4497,6 +4498,7 @@ void InitGfx() /* create additional image buffers for double-buffering and cross-fading */ bitmap_db_title = CreateBitmap(WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH); bitmap_db_field = CreateBitmap(FXSIZE, FYSIZE, DEFAULT_DEPTH); + bitmap_db_panel = CreateBitmap(DXSIZE, DYSIZE, DEFAULT_DEPTH); bitmap_db_door = CreateBitmap(3 * DXSIZE, DYSIZE + VYSIZE, DEFAULT_DEPTH); /* initialize screen properties */ @@ -4514,8 +4516,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); }