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.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'third_party/agg23/agg_vcgen_stroke.h') diff --git a/third_party/agg23/agg_vcgen_stroke.h b/third_party/agg23/agg_vcgen_stroke.h index 84fadd6ed8..23142d37f6 100644 --- a/third_party/agg23/agg_vcgen_stroke.h +++ b/third_party/agg23/agg_vcgen_stroke.h @@ -61,52 +61,52 @@ public: { return m_inner_join; } - void width(FX_FLOAT w) + void width(float w) { m_width = w / 2; } - void miter_limit(FX_FLOAT ml) + void miter_limit(float ml) { m_miter_limit = ml; } - void miter_limit_theta(FX_FLOAT t); - void inner_miter_limit(FX_FLOAT ml) + void miter_limit_theta(float t); + void inner_miter_limit(float ml) { m_inner_miter_limit = ml; } - void approximation_scale(FX_FLOAT as) + void approximation_scale(float as) { m_approx_scale = as; } - FX_FLOAT width() const + float width() const { return m_width * 2; } - FX_FLOAT miter_limit() const + float miter_limit() const { return m_miter_limit; } - FX_FLOAT inner_miter_limit() const + float inner_miter_limit() const { return m_inner_miter_limit; } - FX_FLOAT approximation_scale() const + float approximation_scale() const { return m_approx_scale; } void remove_all(); - void add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd); + void add_vertex(float x, float y, unsigned cmd); void rewind(unsigned path_id); - unsigned vertex(FX_FLOAT* x, FX_FLOAT* y); + unsigned vertex(float* x, float* y); private: vcgen_stroke(const vcgen_stroke&); const vcgen_stroke& operator = (const vcgen_stroke&); vertex_storage m_src_vertices; coord_storage m_out_vertices; - FX_FLOAT m_width; - FX_FLOAT m_miter_limit; - FX_FLOAT m_inner_miter_limit; - FX_FLOAT m_approx_scale; + float m_width; + float m_miter_limit; + float m_inner_miter_limit; + float m_approx_scale; line_cap_e m_line_cap; line_join_e m_line_join; inner_join_e m_inner_join; -- cgit v1.2.3