diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-12 12:56:16 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-12 12:58:11 +0000 |
commit | 3db3054ec8223b6bd01d8d8144b4863c9ca8fd2d (patch) | |
tree | f020b21a37e8e4f4499c19938928d220327e299a /draw/draw_edge.c | |
parent | b69540172265a037ad3c72ea85453b6d89de5e0a (diff) | |
download | mupdf-3db3054ec8223b6bd01d8d8144b4863c9ca8fd2d.tar.xz |
More API tidying.
Make fz_clone_context copy existing AA settings.
Add accessor function for fz_bitmap.
Add more documentation for various functions/types.
Diffstat (limited to 'draw/draw_edge.c')
-rw-r--r-- | draw/draw_edge.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 |