diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-03 14:51:45 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-03 20:36:56 +0000 |
commit | 669a418f75c05d4a39e2bcaff2b7b93dec1c5764 (patch) | |
tree | b76f5025c8e70b1ef449f317ff60a8eef7317ab9 /third_party/agg23/0000-bug-466.patch | |
parent | ac978f83392e309488601eb382d5f318b6d366ad (diff) | |
download | pdfium-669a418f75c05d4a39e2bcaff2b7b93dec1c5764.tar.xz |
Drop FXSYS_ from math methods
This Cl drops the FXSYS_ from math methods which are the same on all
platforms.
Bug: pdfium:694
Change-Id: I85c9ff841fd9095b1434f67319847ba0cd9df7ac
Reviewed-on: https://pdfium-review.googlesource.com/3598
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'third_party/agg23/0000-bug-466.patch')
-rw-r--r-- | third_party/agg23/0000-bug-466.patch | 10 |
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; } |