diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-12-15 15:51:35 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-12-18 15:32:14 +0100 |
commit | 02d5b2280db2846e4a683944819eb395ab15b8ce (patch) | |
tree | 52e0616ea0d3a01ba9bd1943c23b72965b17e66e /source | |
parent | ed1d49f58750b204ddf7e2fb686d666e819f41e3 (diff) | |
download | mupdf-02d5b2280db2846e4a683944819eb395ab15b8ce.tar.xz |
Rename fz_halftone_pixmap to fz_new_bitmap_from_pixmap.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/halftone.c | 2 | ||||
-rw-r--r-- | source/tools/mudraw.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/halftone.c b/source/fitz/halftone.c index 26dbc941..f10aa05d 100644 --- a/source/fitz/halftone.c +++ b/source/fitz/halftone.c @@ -161,7 +161,7 @@ static void do_threshold_1(unsigned char *ht_line, unsigned char *pixmap, unsign *out = h; } -fz_bitmap *fz_halftone_pixmap(fz_context *ctx, fz_pixmap *pix, fz_halftone *ht) +fz_bitmap *fz_new_bitmap_from_pixmap(fz_context *ctx, fz_pixmap *pix, fz_halftone *ht) { fz_bitmap *out; unsigned char *ht_line, *o, *p; diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index a00646d6..b1ccc38b 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -614,7 +614,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) append = 0; if (out_cs == CS_MONO) { - fz_bitmap *bit = fz_halftone_pixmap(ctx, pix, NULL); + fz_bitmap *bit = fz_new_bitmap_from_pixmap(ctx, pix, NULL); fz_save_bitmap_as_pwg(ctx, bit, filename_buf, append, NULL); fz_drop_bitmap(ctx, bit); } @@ -632,7 +632,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) append = 0; if (out_cs == CS_MONO) { - fz_bitmap *bit = fz_halftone_pixmap(ctx, pix, NULL); + fz_bitmap *bit = fz_new_bitmap_from_pixmap(ctx, pix, NULL); fz_save_bitmap_as_pcl(ctx, bit, filename_buf, append, &options); fz_drop_bitmap(ctx, bit); } @@ -641,7 +641,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) append = 1; } else if (output_format == OUT_PBM) { - fz_bitmap *bit = fz_halftone_pixmap(ctx, pix, NULL); + fz_bitmap *bit = fz_new_bitmap_from_pixmap(ctx, pix, NULL); fz_save_bitmap_as_pbm(ctx, bit, filename_buf); fz_drop_bitmap(ctx, bit); } |