diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-07 17:08:41 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-07 17:08:41 +0000 |
commit | c4e870b5422207e6ca31eb2cd6694ba44faec21e (patch) | |
tree | 076ae20d2b50286a72a493e077c966f08c64bd73 /apps | |
parent | 16c6f406911b9c93491a244cfe1ec37603284489 (diff) | |
download | mupdf-c4e870b5422207e6ca31eb2cd6694ba44faec21e.tar.xz |
Tweak Halftone functions
A NULL halftone pointer passed to fz_halftone_pixmap is now taken
to mean "use the default halftone".
This means we can remove most of the halftone functions from the
public API until (post 1.0) we decide to flesh out the functionality.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/mudraw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c index 8b3aebf5..7c79b2fa 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -240,11 +240,9 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) else if (strstr(output, ".png")) fz_write_png(ctx, pix, buf, savealpha); else if (strstr(output, ".pbm")) { - fz_halftone *ht = fz_get_default_halftone(ctx, 1); - fz_bitmap *bit = fz_halftone_pixmap(ctx, pix, ht); + fz_bitmap *bit = fz_halftone_pixmap(ctx, pix, NULL); fz_write_pbm(ctx, bit, buf); fz_drop_bitmap(ctx, bit); - fz_drop_halftone(ctx, ht); } } |