summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos H. Woehrmann <marcos.woehrmann@artifex.com>2012-04-09 09:32:12 -0700
committerMarcos H. Woehrmann <marcos.woehrmann@artifex.com>2012-04-09 09:32:12 -0700
commit612f02c29f356c44ca72ec31eb6a64b65d7e7d04 (patch)
treef8503e6885e827b6270108120108098f5af91db8
parent5e0dd327627f3c5dfe50f51ab583b5d696957972 (diff)
Print out message from bmpcmp.c if no differences detected.
-rw-r--r--gs/toolbin/bmpcmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gs/toolbin/bmpcmp.c b/gs/toolbin/bmpcmp.c
index 54cc14feb..e80f16f92 100644
--- a/gs/toolbin/bmpcmp.c
+++ b/gs/toolbin/bmpcmp.c
@@ -2886,6 +2886,7 @@ int main(int argc, char *argv[])
ImageReader image1, image2;
DiffFn *diffFn;
Params params;
+ int noDifferences = 1;
parseArgs(argc, argv, &params);
if (params.window <= 1 && params.threshold == 0) {
@@ -3048,6 +3049,7 @@ int main(int argc, char *argv[])
sprintf(str4, "%s.%05d.meta", params.outroot, n);
save_meta(boxlist, str4, w, h, imagecount, params.threshold, params.window);
n += 3;
+ noDifferences = 0;
/* If there is a maximum set */
if (params.maxdiffs > 0)
{
@@ -3089,5 +3091,8 @@ done:
image_close(&image1);
image_close(&image2);
+ if (noDifferences == 1)
+ fprintf(stderr, "bmpcmp: no differences detected\n");
+
return EXIT_SUCCESS;
}