xxx: work around bounding box problems
graphene_rect_intersect returns FALSE when you intersect the bounding boxes of axis-aligned lines, so we never find intersections with those. Make things better by making the bounding boxes worse.
This commit is contained in:
@@ -334,6 +334,12 @@ get_bounds (const GskCurve *curve,
|
||||
|
||||
gsk_curve_segment (curve, tl, tr, &c);
|
||||
gsk_curve_get_tight_bounds (&c, bounds);
|
||||
|
||||
/* FIXME this is working around inadequacies of
|
||||
* graphene_rect_t as bounding box
|
||||
*/
|
||||
bounds->size.width += 0.0001;
|
||||
bounds->size.height += 0.0001;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user