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 --- fpdfsdk/fpdf_flatten.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'fpdfsdk/fpdf_flatten.cpp') diff --git a/fpdfsdk/fpdf_flatten.cpp b/fpdfsdk/fpdf_flatten.cpp index 06ea939b72..c43412cfc7 100644 --- a/fpdfsdk/fpdf_flatten.cpp +++ b/fpdfsdk/fpdf_flatten.cpp @@ -123,14 +123,14 @@ int ParserAnnots(CPDF_Document* pSourceDoc, return FLATTEN_SUCCESS; } -FX_FLOAT GetMinMaxValue(const std::vector& array, - FPDF_TYPE type, - FPDF_VALUE value) { +float GetMinMaxValue(const std::vector& array, + FPDF_TYPE type, + FPDF_VALUE value) { size_t nRects = array.size(); if (nRects <= 0) return 0.0f; - std::vector pArray(nRects); + std::vector pArray(nRects); switch (value) { case LEFT: for (size_t i = 0; i < nRects; i++) @@ -153,7 +153,7 @@ FX_FLOAT GetMinMaxValue(const std::vector& array, return 0.0f; } - FX_FLOAT fRet = pArray[0]; + float fRet = pArray[0]; if (type == MAX) { for (size_t i = 1; i < nRects; i++) fRet = std::max(fRet, pArray[i]); @@ -231,11 +231,11 @@ CFX_Matrix GetMatrix(CFX_FloatRect rcAnnot, matrix.TransformRect(rcStream); rcStream.Normalize(); - FX_FLOAT a = rcAnnot.Width() / rcStream.Width(); - FX_FLOAT d = rcAnnot.Height() / rcStream.Height(); + float a = rcAnnot.Width() / rcStream.Width(); + float d = rcAnnot.Height() / rcStream.Height(); - FX_FLOAT e = rcAnnot.left - rcStream.left * a; - FX_FLOAT f = rcAnnot.bottom - rcStream.bottom * d; + float e = rcAnnot.left - rcStream.left * a; + float f = rcAnnot.bottom - rcStream.bottom * d; return CFX_Matrix(a, 0, 0, d, e, f); } -- cgit v1.2.3