From: Pasi Kallinen Date: Sat, 14 Oct 2017 10:10:34 +0000 (+0300) Subject: Use the same macro for output in tile2x11 X-Git-Tag: NetHack-3.6.1_RC01~263 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04b08298a3fdba78382a6d0f6f6cea418cb7dfea;p=nethack Use the same macro for output in tile2x11 --- diff --git a/win/X11/tile2x11.c b/win/X11/tile2x11.c index d8169b37b..a51cb75cd 100644 --- a/win/X11/tile2x11.c +++ b/win/X11/tile2x11.c @@ -91,7 +91,7 @@ merge_text_colormap() if (j == header.ncolors) { /* couldn't find it */ #ifdef PRINT_COLORMAP - printf("color %2d: %3d %3d %3d\n", header.ncolors, + Fprintf(stdout, "color %2d: %3d %3d %3d\n", header.ncolors, ColorMap[CM_RED][i], ColorMap[CM_GREEN][i], ColorMap[CM_BLUE][i]); #endif @@ -117,7 +117,7 @@ char *fname; } merge_text_colormap(); count = convert_tiles(&curr_tb, header.ntiles); - printf("%s: %lu tiles\n", fname, count); + Fprintf(stdout, "%s: %lu tiles\n", fname, count); header.ntiles += count; fclose_text_file(); } @@ -157,7 +157,7 @@ FILE *fp; Fprintf(fp, "\",\n"); } - return fprintf(fp, "};\n") >= 0; + return Fprintf(fp, "};\n") >= 0; } #endif /* USE_XPM */ @@ -199,7 +199,7 @@ char **argv; } process_file(argv[i]); } - printf("Total tiles: %ld\n", header.ntiles); + Fprintf(stdout, "Total tiles: %ld\n", header.ntiles); /* round size up to the end of the row */ if ((header.ntiles % header.per_row) != 0) {