From 7185c00e15aecf14d1957ba2e4f386ecb4e2a635 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Feb 2007 16:21:28 -0500 Subject: [PATCH] [PS] Add note about possible need for fix. --- src/cairo-ps-surface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index dcc74bae5..b55900c48 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -1740,6 +1740,11 @@ emit_surface_pattern (cairo_ps_surface_t *surface, */ switch (pattern->base.extend) { case CAIRO_EXTEND_NONE: + /* XXX We may need to update this to something like the code + * that is in PDF. The point is, xstep/ystep are in pattern + * space, not device space, so surface->width/height do not + * make much sense. But most of the time patterns scale up, + * not down, so this is less of a problem. */ xstep = MAX (image->width, surface->width); ystep = MAX (image->height, surface->height); break;