Skip to content

Commit 8dba6d0

Browse files
committed
Use fuzzy comparison for stroke join determination.
This sometimes produces something just slightly different from 0 compared to x86(_64).
1 parent be7e4e4 commit 8dba6d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extern/agg24-svn/include/agg_math_stroke.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ namespace agg
391391
vc.remove_all();
392392

393393
double cp = cross_product(v0.x, v0.y, v1.x, v1.y, v2.x, v2.y);
394-
if(cp != 0 && (cp > 0) == (m_width > 0))
394+
if ((cp > agg::vertex_dist_epsilon && m_width > 0) ||
395+
(cp < -agg::vertex_dist_epsilon && m_width < 0))
395396
{
396397
// Inner join
397398
//---------------

0 commit comments

Comments
 (0)