From d55162d649a12d62a1d1c738d99ca9dee7de575d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 2 Mar 2012 14:13:05 +0000 Subject: Split fitz.h/mupdf.h into internal/external headers. Attempt to separate public API from internal functions. --- draw/draw_edge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draw/draw_edge.c') diff --git a/draw/draw_edge.c b/draw/draw_edge.c index adb460ac..74cd3aec 100644 --- a/draw/draw_edge.c +++ b/draw/draw_edge.c @@ -1,4 +1,4 @@ -#include "fitz.h" +#include "fitz-internal.h" #define BBOX_MIN -(1<<20) #define BBOX_MAX (1<<20) -- cgit v1.2.3 From 3db3054ec8223b6bd01d8d8144b4863c9ca8fd2d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 12 Mar 2012 12:56:16 +0000 Subject: More API tidying. Make fz_clone_context copy existing AA settings. Add accessor function for fz_bitmap. Add more documentation for various functions/types. --- draw/draw_edge.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'draw/draw_edge.c') diff --git a/draw/draw_edge.c b/draw/draw_edge.c index 74cd3aec..fa192bb8 100644 --- a/draw/draw_edge.c +++ b/draw/draw_edge.c @@ -41,6 +41,12 @@ void fz_new_aa_context(fz_context *ctx) #endif } +void fz_copy_aa_context(fz_context *dst, fz_context *src) +{ + if (dst && src) + memcpy(dst, src, sizeof(*src)); +} + void fz_free_aa_context(fz_context *ctx) { #ifndef AA_BITS -- cgit v1.2.3