mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 08:48:00 +02:00
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:
parent
e2c9964c3e
commit
56528d7b9d
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue