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_vcgen_stroke.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'third_party/agg23/agg_vcgen_stroke.cpp') diff --git a/third_party/agg23/agg_vcgen_stroke.cpp b/third_party/agg23/agg_vcgen_stroke.cpp index 03225b1649..a59abf0022 100644 --- a/third_party/agg23/agg_vcgen_stroke.cpp +++ b/third_party/agg23/agg_vcgen_stroke.cpp @@ -51,7 +51,7 @@ void vcgen_stroke::remove_all() m_closed = 0; m_status = initial; } -void vcgen_stroke::add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd) +void vcgen_stroke::add_vertex(float x, float y, unsigned cmd) { m_status = initial; if(is_move_to(cmd)) { @@ -64,13 +64,13 @@ void vcgen_stroke::add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd) } } } -static inline void calc_butt_cap(FX_FLOAT* cap, +static inline void calc_butt_cap(float* cap, const vertex_dist& v0, const vertex_dist& v1, - FX_FLOAT len, - FX_FLOAT width) { - FX_FLOAT dx = (v1.y - v0.y) * width / len; - FX_FLOAT dy = (v1.x - v0.x) * width / len; + float len, + float width) { + float dx = (v1.y - v0.y) * width / len; + float dy = (v1.x - v0.x) * width / len; cap[0] = v0.x - dx; cap[1] = v0.y + dy; cap[2] = v0.x + dx; @@ -88,7 +88,7 @@ void vcgen_stroke::rewind(unsigned) m_src_vertex = 0; m_out_vertex = 0; } -unsigned vcgen_stroke::vertex(FX_FLOAT* x, FX_FLOAT* y) +unsigned vcgen_stroke::vertex(float* x, float* y) { unsigned cmd = path_cmd_line_to; line_join_e curj; -- cgit v1.2.3