Temporarily disable rectangle-based clipping optimization as it's not working (see cairo_snippets/xxx_clip_rectangle for a test case).

This commit is contained in:
Carl Worth 2004-08-03 11:49:20 +00:00
parent e5afa03605
commit 62e4b869cd
3 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-08-03 Carl Worth <cworth@isi.edu>
* src/cairo_gstate.c (extract_transformed_rectangle): Temporarily
disable rectangle-based clipping optimization as it's not working
(see cairo_snippets/xxx_clip_rectangle for a test case).
2004-08-02 Carl Worth <cworth@isi.edu>
* COPYING:

View file

@ -1659,6 +1659,15 @@ extract_transformed_rectangle(cairo_matrix_t *mat,
double a, b, c, d, tx, ty;
cairo_status_t st;
/* XXX: Something in the rectangle-based clipping support is
* broken. See cairo_snippets/xxx_clip_rectangle which
* demonstrates no clipping at all.
*
* For now, I'm am disabling this optimization completely until it
* can be fixed.
*/
return 0;
st = cairo_matrix_get_affine (mat, &a, &b, &c, &d, &tx, &ty);
if (!(st == CAIRO_STATUS_SUCCESS && b == 0. && c == 0.))
return 0;

View file

@ -1659,6 +1659,15 @@ extract_transformed_rectangle(cairo_matrix_t *mat,
double a, b, c, d, tx, ty;
cairo_status_t st;
/* XXX: Something in the rectangle-based clipping support is
* broken. See cairo_snippets/xxx_clip_rectangle which
* demonstrates no clipping at all.
*
* For now, I'm am disabling this optimization completely until it
* can be fixed.
*/
return 0;
st = cairo_matrix_get_affine (mat, &a, &b, &c, &d, &tx, &ty);
if (!(st == CAIRO_STATUS_SUCCESS && b == 0. && c == 0.))
return 0;