summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/fitz/halftone.c13
-rw-r--r--source/tools/mudraw.c2
-rw-r--r--source/tools/muraster.c2
3 files changed, 12 insertions, 5 deletions
diff --git a/source/fitz/halftone.c b/source/fitz/halftone.c
index dd9bb58f..1a4da0f0 100644
--- a/source/fitz/halftone.c
+++ b/source/fitz/halftone.c
@@ -1,6 +1,13 @@
#include "mupdf/fitz.h"
-fz_halftone *
+struct fz_halftone_s
+{
+ int refs;
+ int n;
+ fz_pixmap *comp[1];
+};
+
+static fz_halftone *
fz_new_halftone(fz_context *ctx, int comps)
{
fz_halftone *ht;
@@ -490,7 +497,7 @@ static void do_threshold_4(const unsigned char * restrict ht_line, const unsigne
fz_bitmap *fz_new_bitmap_from_pixmap(fz_context *ctx, fz_pixmap *pix, fz_halftone *ht)
{
- return fz_new_bitmap_from_pixmap_band(ctx, pix, ht, 0, 0);
+ return fz_new_bitmap_from_pixmap_band(ctx, pix, ht, 0);
}
/* TAOCP, vol 2, p337 */
@@ -509,7 +516,7 @@ static int gcd(int u, int v)
while (1);
}
-fz_bitmap *fz_new_bitmap_from_pixmap_band(fz_context *ctx, fz_pixmap *pix, fz_halftone *ht, int band_start, int band_height)
+fz_bitmap *fz_new_bitmap_from_pixmap_band(fz_context *ctx, fz_pixmap *pix, fz_halftone *ht, int band_start)
{
fz_bitmap *out = NULL;
unsigned char *ht_line = NULL;
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index c9908906..470ff66d 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -575,7 +575,7 @@ static void drawband(fz_context *ctx, fz_page *page, fz_display_list *list, cons
fz_unmultiply_pixmap(ctx, pix);
if ((output_format == OUT_PCL && out_cs == CS_MONO) || (output_format == OUT_PBM) || (output_format == OUT_PKM))
- *bit = fz_new_bitmap_from_pixmap_band(ctx, pix, NULL, band_start, band_height);
+ *bit = fz_new_bitmap_from_pixmap_band(ctx, pix, NULL, band_start);
}
fz_catch(ctx)
{
diff --git a/source/tools/muraster.c b/source/tools/muraster.c
index f08de504..ddb546b1 100644
--- a/source/tools/muraster.c
+++ b/source/tools/muraster.c
@@ -722,7 +722,7 @@ static int drawband(fz_context *ctx, fz_page *page, fz_display_list *list, const
dev = NULL;
if ((output_format == OUT_PBM) || (output_format == OUT_PKM))
- *bit = fz_new_bitmap_from_pixmap_band(ctx, pix, NULL, band_start, band_height);
+ *bit = fz_new_bitmap_from_pixmap_band(ctx, pix, NULL, band_start);
}
fz_catch(ctx)
{