summaryrefslogtreecommitdiff
path: root/xps/xpsvisual.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2007-05-14 19:24:49 +0000
committerTor Andersson <tor.andersson@artifex.com>2007-05-14 19:24:49 +0000
commit3256f81d08855675253797cede3aba6a217d124b (patch)
tree841735d557a87719913a1193130633a82a791dc9 /xps/xpsvisual.c
parentc3d0aedbc98eae087c5d0b4254ee977be88d7e83 (diff)
downloadghostpdl-3256f81d08855675253797cede3aba6a217d124b.tar.gz
Remove even more debugging messages. Fix copy & paste error when setting media size.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2843 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'xps/xpsvisual.c')
-rw-r--r--xps/xpsvisual.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/xps/xpsvisual.c b/xps/xpsvisual.c
index f0818c34c..0dddfdb12 100644
--- a/xps/xpsvisual.c
+++ b/xps/xpsvisual.c
@@ -94,16 +94,31 @@ xps_parse_visual_brush(xps_context_t *ctx, xps_resource_t *dict, xps_item_t *roo
if (viewport_att)
xps_parse_rectangle(ctx, viewport_att, &viewport);
+ tile_mode = TILE_NONE;
+ if (tile_mode_att)
+ {
+ if (!strcmp(tile_mode_att, "None"))
+ tile_mode = TILE_NONE;
+ if (!strcmp(tile_mode_att, "Tile"))
+ tile_mode = TILE_TILE;
+ if (!strcmp(tile_mode_att, "FlipX"))
+ tile_mode = TILE_FLIP_X;
+ if (!strcmp(tile_mode_att, "FlipY"))
+ tile_mode = TILE_FLIP_Y;
+ if (!strcmp(tile_mode_att, "FlipXY"))
+ tile_mode = TILE_FLIP_X_Y;
+ }
+
scalex = (viewport.q.x - viewport.p.x) / (viewbox.q.x - viewbox.p.x);
scaley = (viewport.q.y - viewport.p.y) / (viewbox.q.y - viewbox.p.y);
+#if 0 /* can't get this to work */
+
dprintf6("xps_parse_visual_brush [%g %g %g %g] scale=%g,%g\n",
transform.xx, transform.xy,
transform.yx, transform.yy,
scalex, scaley);
-#if 0 /* can't get this to work */
-
{
struct userdata foo;
gs_client_pattern gspat;
@@ -162,6 +177,8 @@ xps_parse_visual_brush(xps_context_t *ctx, xps_resource_t *dict, xps_item_t *roo
gs_fill(ctx->pgs);
}
+ dputs("finished visual brush\n");
+
#else
gs_gsave(ctx->pgs);
@@ -171,21 +188,6 @@ xps_parse_visual_brush(xps_context_t *ctx, xps_resource_t *dict, xps_item_t *roo
gs_scale(ctx->pgs, scalex, scaley);
gs_translate(ctx->pgs, -viewbox.p.x, viewbox.p.y);
- tile_mode = TILE_NONE;
- if (tile_mode_att)
- {
- if (!strcmp(tile_mode_att, "None"))
- tile_mode = TILE_NONE;
- if (!strcmp(tile_mode_att, "Tile"))
- tile_mode = TILE_TILE;
- if (!strcmp(tile_mode_att, "FlipX"))
- tile_mode = TILE_FLIP_X;
- if (!strcmp(tile_mode_att, "FlipY"))
- tile_mode = TILE_FLIP_Y;
- if (!strcmp(tile_mode_att, "FlipXY"))
- tile_mode = TILE_FLIP_X_Y;
- }
-
if (tile_mode == TILE_NONE)
tile_x = tile_y = 1;
else
@@ -230,8 +232,6 @@ xps_parse_visual_brush(xps_context_t *ctx, xps_resource_t *dict, xps_item_t *roo
#endif
- dputs("finished visual brush\n");
-
return 0;
}