From 66f878d1d7c580f9010e9f362399606989671a45 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sat, 25 Mar 2017 17:39:45 -0400 Subject: Tweak document_writer - don't pass dev back in. It seems odd for a document writer to pass a device pointer out, and then require it to be passed back in. Hide that in the public API. --- include/mupdf/fitz/writer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/writer.h b/include/mupdf/fitz/writer.h index 2c2f967f..dedb064a 100644 --- a/include/mupdf/fitz/writer.h +++ b/include/mupdf/fitz/writer.h @@ -20,6 +20,7 @@ struct fz_document_writer_s fz_document_writer_end_page_fn *end_page; fz_document_writer_close_writer_fn *close_writer; fz_document_writer_drop_writer_fn *drop_writer; + fz_device *dev; }; fz_document_writer *fz_new_document_writer_of_size(fz_context *ctx, size_t size, fz_document_writer_begin_page_fn *begin_page, @@ -50,7 +51,7 @@ fz_document_writer *fz_new_pbm_pixmap_writer(fz_context *ctx, const char *path, fz_document_writer *fz_new_pkm_pixmap_writer(fz_context *ctx, const char *path, const char *options); fz_device *fz_begin_page(fz_context *ctx, fz_document_writer *wri, const fz_rect *mediabox); -void fz_end_page(fz_context *ctx, fz_document_writer *wri, fz_device *dev); +void fz_end_page(fz_context *ctx, fz_document_writer *wri); void fz_close_document_writer(fz_context *ctx, fz_document_writer *wri); void fz_drop_document_writer(fz_context *ctx, fz_document_writer *wri); -- cgit v1.2.3