ps: Fix painting

Painting of some pattern was broken because the paint operation was
implemented as a fill to a rect containing the clip, but this rect was
not transformed as appropriate (using the cairo_to_ps matrix).
PDF simply fills the whole surface rect, so we implement the same
behavior in PS.

Fixes clip-group-shapes-circles, clip-stroke, linear-gradient-extend,
linear-gradient-one-stop, radial-gradient-one-stop.
This commit is contained in:
Andrea Canciani 2010-11-22 23:41:33 +01:00
parent e2c9964c3e
commit 56528d7b9d

View file

@ -3552,9 +3552,8 @@ _cairo_ps_surface_paint (void *abstract_surface,
if (unlikely (status))
return status;
_cairo_output_stream_printf (stream, "%d %d %d %d rectfill\n",
extents.bounded.x, extents.bounded.y,
extents.bounded.width, extents.bounded.height);
_cairo_output_stream_printf (stream, "0 0 %f %f rectfill\n",
surface->width, surface->height);
}
return CAIRO_STATUS_SUCCESS;