[gtk/path-stroke: 8/27] xxx: work around bounding box problems
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/path-stroke: 8/27] xxx: work around bounding box problems
- Date: Wed, 23 Dec 2020 04:48:50 +0000 (UTC)
commit 275c15865349ad6c7db7d56a9a01e2ba9b6ad4f3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 13 10:10:44 2020 -0500
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.
gsk/gskcurveintersect.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gsk/gskcurveintersect.c b/gsk/gskcurveintersect.c
index 0805661c2d..327827c718 100644
--- a/gsk/gskcurveintersect.c
+++ b/gsk/gskcurveintersect.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]