diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-10-09 11:23:57 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-12-11 13:02:33 +0100 |
commit | 3bcee7eb19d9bdae30ba4e6c3574441c38df9db7 (patch) | |
tree | e7105856b596e46426cb3e6460d81d10fd5d4555 /include | |
parent | fa0bffa57e7e2164f0201b0f2fdc984d475674ae (diff) | |
download | mupdf-3bcee7eb19d9bdae30ba4e6c3574441c38df9db7.tar.xz |
Remove text clip accumulation.
We can now group all clipped text into one fz_text object and simplify
the device interface.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/device.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h index 3f2585ae..95c56c65 100644 --- a/include/mupdf/fitz/device.h +++ b/include/mupdf/fitz/device.h @@ -113,7 +113,7 @@ struct fz_device_s void (*fill_text)(fz_context *, fz_device *, fz_text *, const fz_matrix *, fz_colorspace *, float *color, float alpha); void (*stroke_text)(fz_context *, fz_device *, fz_text *, fz_stroke_state *, const fz_matrix *, fz_colorspace *, float *color, float alpha); - void (*clip_text)(fz_context *, fz_device *, fz_text *, const fz_matrix *, int accumulate); + void (*clip_text)(fz_context *, fz_device *, fz_text *, const fz_matrix *); void (*clip_stroke_text)(fz_context *, fz_device *, fz_text *, fz_stroke_state *, const fz_matrix *); void (*ignore_text)(fz_context *, fz_device *, fz_text *, const fz_matrix *); @@ -142,7 +142,6 @@ struct fz_device_s int container_len; int container_cap; fz_device_container_stack *container; - fz_rect scissor_accumulator; }; void fz_begin_page(fz_context *ctx, fz_device *dev, const fz_rect *rect, const fz_matrix *ctm); @@ -153,7 +152,7 @@ void fz_clip_path(fz_context *ctx, fz_device *dev, fz_path *path, const fz_rect void fz_clip_stroke_path(fz_context *ctx, fz_device *dev, fz_path *path, const fz_rect *rect, fz_stroke_state *stroke, const fz_matrix *ctm); void fz_fill_text(fz_context *ctx, fz_device *dev, fz_text *text, const fz_matrix *ctm, fz_colorspace *colorspace, float *color, float alpha); void fz_stroke_text(fz_context *ctx, fz_device *dev, fz_text *text, fz_stroke_state *stroke, const fz_matrix *ctm, fz_colorspace *colorspace, float *color, float alpha); -void fz_clip_text(fz_context *ctx, fz_device *dev, fz_text *text, const fz_matrix *ctm, int accumulate); +void fz_clip_text(fz_context *ctx, fz_device *dev, fz_text *text, const fz_matrix *ctm); void fz_clip_stroke_text(fz_context *ctx, fz_device *dev, fz_text *text, fz_stroke_state *stroke, const fz_matrix *ctm); void fz_ignore_text(fz_context *ctx, fz_device *dev, fz_text *text, const fz_matrix *ctm); void fz_pop_clip(fz_context *ctx, fz_device *dev); |