]> granicus.if.org Git - nethack/commitdiff
Use the same macro for output in tile2x11
authorPasi Kallinen <paxed@alt.org>
Sat, 14 Oct 2017 10:10:34 +0000 (13:10 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 14 Oct 2017 10:10:34 +0000 (13:10 +0300)
win/X11/tile2x11.c

index d8169b37bbd62a8caf9c1192d2733e9cb8dce904..a51cb75cded77c5c375398342dd49e90abd01136 100644 (file)
@@ -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) {