summaryrefslogtreecommitdiff
path: root/third_party/agg23/0000-bug-466.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/agg23/0000-bug-466.patch')
-rw-r--r--third_party/agg23/0000-bug-466.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/agg23/0000-bug-466.patch b/third_party/agg23/0000-bug-466.patch
index 3217b3838a..e761198a48 100644
--- a/third_party/agg23/0000-bug-466.patch
+++ b/third_party/agg23/0000-bug-466.patch
@@ -4,7 +4,7 @@ index 6d7ba8a..2b06b1b 100644
+++ b/third_party/agg23/agg_math_stroke.h
@@ -60,28 +60,30 @@ void stroke_calc_arc(VertexConsumer& out_vertices,
}
- da = FXSYS_acos(width / (width + ((1.0f / 8) / approximation_scale))) * 2;
+ da = acos(width / (width + ((1.0f / 8) / approximation_scale))) * 2;
out_vertices.add(coord_type(x + dx1, y + dy1));
- if(!ccw) {
- if(a1 > a2) {
@@ -18,8 +18,8 @@ index 6d7ba8a..2b06b1b 100644
a1 += da;
- while(a1 < a2) {
+ while (a1 < a2) {
- out_vertices.add(coord_type(x + (width * FXSYS_cos(a1)),
- y + (width * FXSYS_sin(a1))));
+ out_vertices.add(coord_type(x + (width * cos(a1)),
+ y + (width * sin(a1))));
- a1 += da;
+ a1 += da;
}
@@ -34,8 +34,8 @@ index 6d7ba8a..2b06b1b 100644
a1 -= da;
- while(a1 > a2) {
+ while (a1 > a2) {
- out_vertices.add(coord_type(x + (width * FXSYS_cos(a1)),
- y + (width * FXSYS_sin(a1))));
+ out_vertices.add(coord_type(x + (width * cos(a1)),
+ y + (width * sin(a1))));
- a1 -= da;
+ a1 -= da;
}