diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-03-22 19:42:01 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-03-22 20:27:43 +0100 |
commit | b1c3f5a602f7be8e2db87f73c1e55052b58b1c6e (patch) | |
tree | 19d13becbd97b40cc91f60a1ae2d30bdf1ceaef4 /xps/xpsvisual.c | |
parent | b8efb1cf3ce4c57fd4a0396c2a9102630d3d6e36 (diff) | |
download | mupdf-b1c3f5a602f7be8e2db87f73c1e55052b58b1c6e.tar.xz |
xps: use fitz runtime and remove ghostscript specific code so it compiles.
Diffstat (limited to 'xps/xpsvisual.c')
-rw-r--r-- | xps/xpsvisual.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/xps/xpsvisual.c b/xps/xpsvisual.c index f23ef991..0b6fb4da 100644 --- a/xps/xpsvisual.c +++ b/xps/xpsvisual.c @@ -1,19 +1,5 @@ -/* Copyright (C) 2006-2010 Artifex Software, Inc. - All Rights Reserved. - - This software is provided AS-IS with no warranty, either express or - implied. - - This software is distributed under license and may not be copied, modified - or distributed except as expressly authorized under the terms of that - license. Refer to licensing information at http://www.artifex.com/ - or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, - San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information. -*/ - -/* XPS interpreter - visual brush functions */ - -#include "ghostxps.h" +#include "fitz.h" +#include "muxps.h" enum { TILE_NONE, TILE_TILE, TILE_FLIP_X, TILE_FLIP_Y, TILE_FLIP_X_Y }; @@ -25,13 +11,14 @@ struct userdata }; static int -xps_paint_visual_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dict, xps_item_t *root, void *visual_tag) +xps_paint_visual_brush(xps_context_t *ctx, fz_matrix ctm, + char *base_uri, xps_resource_t *dict, xps_item_t *root, void *visual_tag) { - return xps_parse_element(ctx, base_uri, dict, (xps_item_t *)visual_tag); + return xps_parse_element(ctx, ctm, base_uri, dict, (xps_item_t *)visual_tag); } int -xps_parse_visual_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dict, xps_item_t *root) +xps_parse_visual_brush(xps_context_t *ctx, fz_matrix ctm, char *base_uri, xps_resource_t *dict, xps_item_t *root) { xps_item_t *node; int code; @@ -53,9 +40,9 @@ xps_parse_visual_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dict, if (visual_tag) { - code = xps_parse_tiling_brush(ctx, visual_uri, dict, root, xps_paint_visual_brush, visual_tag); + code = xps_parse_tiling_brush(ctx, ctm, visual_uri, dict, root, xps_paint_visual_brush, visual_tag); if (code) - return gs_rethrow(code, "cannot parse tiling brush"); + return fz_rethrow(code, "cannot parse tiling brush"); } return 0; |