summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-06-22 17:00:59 +0200
committerSebastian Rasmussen <sebras@gmail.com>2016-06-23 19:30:44 +0200
commit6b056736e0363f398122da3a91426a9b4c1335ed (patch)
treed7e7490bc9ad7c03448eaafd2fa846868fa232ca /source/tools
parent1b1a87a541d2dd964412fbf4f27433969bda1686 (diff)
downloadmupdf-6b056736e0363f398122da3a91426a9b4c1335ed.tar.xz
Always print filenames in mudraw.
Regardless of whether rendering in background thread or not the filename and the page number should be printed.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/mudraw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index 171424dc..7e4b40fb 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -1064,8 +1064,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in
}
}
- if (showmd5 || showtime || showfeatures)
- fprintf(stderr, "\n");
+ fprintf(stderr, "\n");
if (lowmemory)
{
@@ -1181,7 +1180,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum)
if (bgprint.active)
{
bgprint_flush();
- if (bgprint.active && (showmd5 || showtime || showfeatures))
+ if (bgprint.active)
{
fprintf(stderr, "page %s %d", filename, pagenum);
}
@@ -1196,6 +1195,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum)
}
else
{
+ fprintf(stderr, "page %s %d%s", filename, pagenum, showmd5 || showtime || showfeatures ? "" : "\n");
dodrawpage(ctx, page, list, pagenum, &cookie, start, 0, filename, 0);
}
}