diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-02 14:13:05 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-06 21:34:51 +0000 |
commit | d55162d649a12d62a1d1c738d99ca9dee7de575d (patch) | |
tree | 56b2de5557048a0601a8d9514cae76f018f8863f /apps/mudraw.c | |
parent | a14bb1748d3827e542fbff47488f67e0dfa3b15d (diff) | |
download | mupdf-d55162d649a12d62a1d1c738d99ca9dee7de575d.tar.xz |
Split fitz.h/mupdf.h into internal/external headers.
Attempt to separate public API from internal functions.
Diffstat (limited to 'apps/mudraw.c')
-rw-r--r-- | apps/mudraw.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c index ce59a4e3..46da1949 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -251,14 +251,10 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) if (showmd5) { - fz_md5 md5; unsigned char digest[16]; int i; - fz_md5_init(&md5); - fz_md5_update(&md5, pix->samples, pix->w * pix->h * pix->n); - fz_md5_final(&md5, digest); - + fz_md5_pixmap(digest, pix); printf(" "); for (i = 0; i < 16; i++) printf("%02x", digest[i]); |