From a7e597397133d4aaa717869258eac6ae34c7dad0 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 28 Mar 2017 10:55:24 +0100 Subject: Rejig fz_new_device to be fz_new_derived_device. In keeping with the rest of the code. --- include/mupdf/fitz/device.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h index e40cc2a5..d65bfcb8 100644 --- a/include/mupdf/fitz/device.h +++ b/include/mupdf/fitz/device.h @@ -147,7 +147,10 @@ int fz_begin_tile_id(fz_context *ctx, fz_device *dev, const fz_rect *area, const void fz_end_tile(fz_context *ctx, fz_device *dev); void fz_render_flags(fz_context *ctx, fz_device *dev, int set, int clear); -void *fz_new_device(fz_context *ctx, int size); +fz_device *fz_new_device_of_size(fz_context *ctx, int size); + +#define fz_new_derived_device(CTX, TYPE) \ + ((TYPE *)Memento_label(fz_new_device_of_size(ctx,sizeof(TYPE)),#TYPE)) /* fz_close_device: Signal the end of input, and flush any buffered output. -- cgit v1.2.3