[cairo-gstate] Use clip, not surface, extents to drop invisible glyphs

This commit is contained in:
Behdad Esfahbod 2008-05-27 20:27:18 -04:00
parent c752bd665a
commit 8c4f4a758b

View file

@ -1697,7 +1697,7 @@ _cairo_gstate_transform_glyphs_to_backend (cairo_gstate_t *gstate,
drop = TRUE;
if (_cairo_surface_get_extents (gstate->target, &surface_extents))
if (_cairo_gstate_int_clip_extents (gstate, &surface_extents))
drop = FALSE; /* unbounded surface */
else {
/* XXX We currently drop any glyphs that has its position outside