diff options
Diffstat (limited to 'fpdfsdk/fpdfxfa')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp | 8 | ||||
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h | 4 | ||||
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_page.cpp | 10 | ||||
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_page.h | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp index 731b0cc296..743b68b27f 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp @@ -108,8 +108,8 @@ void CPDFXFA_DocEnvironment::DisplayCaret(CXFA_FFWidget* hWidget, } bool CPDFXFA_DocEnvironment::GetPopupPos(CXFA_FFWidget* hWidget, - FX_FLOAT fMinPopup, - FX_FLOAT fMaxPopup, + float fMinPopup, + float fMaxPopup, const CFX_RectF& rtAnchor, CFX_RectF& rtPopup) { if (!hWidget) @@ -185,13 +185,13 @@ bool CPDFXFA_DocEnvironment::GetPopupPos(CXFA_FFWidget* hWidget, dwPos = 1; } - FX_FLOAT fPopupHeight; + float fPopupHeight; if (t < fMinPopup) fPopupHeight = fMinPopup; else if (t > fMaxPopup) fPopupHeight = fMaxPopup; else - fPopupHeight = static_cast<FX_FLOAT>(t); + fPopupHeight = static_cast<float>(t); switch (nRotate) { case 0: diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h index dc18d9a0c6..4624d8008c 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h @@ -31,8 +31,8 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { const CFX_RectF* pRtAnchor) override; // dwPos: (0:bottom 1:top) bool GetPopupPos(CXFA_FFWidget* hWidget, - FX_FLOAT fMinPopup, - FX_FLOAT fMaxPopup, + float fMinPopup, + float fMaxPopup, const CFX_RectF& rtAnchor, CFX_RectF& rtPopup) override; bool PopupMenu(CXFA_FFWidget* hWidget, CFX_PointF ptPopup) override; diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp index 8b5bb3d279..d3910ae263 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp @@ -94,7 +94,7 @@ bool CPDFXFA_Page::LoadPDFPage(CPDF_Dictionary* pageDict) { return true; } -FX_FLOAT CPDFXFA_Page::GetPageWidth() const { +float CPDFXFA_Page::GetPageWidth() const { if (!m_pPDFPage && !m_pXFAPageView) return 0.0f; @@ -118,7 +118,7 @@ FX_FLOAT CPDFXFA_Page::GetPageWidth() const { return 0.0f; } -FX_FLOAT CPDFXFA_Page::GetPageHeight() const { +float CPDFXFA_Page::GetPageHeight() const { if (!m_pPDFPage && !m_pXFAPageView) return 0.0f; @@ -158,8 +158,8 @@ void CPDFXFA_Page::DeviceToPage(int start_x, device2page.SetReverse( GetDisplayMatrix(start_x, start_y, size_x, size_y, rotate)); - CFX_PointF pos = device2page.Transform(CFX_PointF( - static_cast<FX_FLOAT>(device_x), static_cast<FX_FLOAT>(device_y))); + CFX_PointF pos = device2page.Transform( + CFX_PointF(static_cast<float>(device_x), static_cast<float>(device_y))); *page_x = pos.x; *page_y = pos.y; @@ -181,7 +181,7 @@ void CPDFXFA_Page::PageToDevice(int start_x, GetDisplayMatrix(start_x, start_y, size_x, size_y, rotate); CFX_PointF pos = page2device.Transform( - CFX_PointF(static_cast<FX_FLOAT>(page_x), static_cast<FX_FLOAT>(page_y))); + CFX_PointF(static_cast<float>(page_x), static_cast<float>(page_y))); *device_x = FXSYS_round(pos.x); *device_y = FXSYS_round(pos.y); diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.h b/fpdfsdk/fpdfxfa/cpdfxfa_page.h index 993885d59e..05b9238eb7 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_page.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.h @@ -38,8 +38,8 @@ class CPDFXFA_Page { m_pXFAPageView = pPageView; } - FX_FLOAT GetPageWidth() const; - FX_FLOAT GetPageHeight() const; + float GetPageWidth() const; + float GetPageHeight() const; void DeviceToPage(int start_x, int start_y, |