From 05df075154a832fcb476e1dfcfb865722d0ea898 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 14 Mar 2017 14:43:42 -0400 Subject: Replace FX_FLOAT with underlying float type. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I158b7d80b0ec28b742a9f2d5a96f3dde7fb3ab56 Reviewed-on: https://pdfium-review.googlesource.com/3031 Commit-Queue: dsinclair Reviewed-by: Tom Sepez Reviewed-by: Nicolás Peña --- third_party/agg23/agg_shorten_path.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'third_party/agg23/agg_shorten_path.h') diff --git a/third_party/agg23/agg_shorten_path.h b/third_party/agg23/agg_shorten_path.h index d7eb4be018..2f62ec52d2 100644 --- a/third_party/agg23/agg_shorten_path.h +++ b/third_party/agg23/agg_shorten_path.h @@ -20,11 +20,11 @@ namespace agg { template -void shorten_path(VertexSequence& vs, FX_FLOAT s, unsigned closed = 0) +void shorten_path(VertexSequence& vs, float s, unsigned closed = 0) { typedef typename VertexSequence::value_type vertex_type; if(s > 0 && vs.size() > 1) { - FX_FLOAT d; + float d; int n = int(vs.size() - 2); while(n) { d = vs[n].dist; @@ -42,8 +42,8 @@ void shorten_path(VertexSequence& vs, FX_FLOAT s, unsigned closed = 0) vertex_type& prev = vs[n - 1]; vertex_type& last = vs[n]; d = (prev.dist - s) / prev.dist; - FX_FLOAT x = prev.x + (last.x - prev.x) * d; - FX_FLOAT y = prev.y + (last.y - prev.y) * d; + float x = prev.x + (last.x - prev.x) * d; + float y = prev.y + (last.y - prev.y) * d; last.x = x; last.y = y; if(!prev(last)) { -- cgit v1.2.3