Index: core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
index 81cf92ee05549a13850b85aeea21aaefe765b13e..41f414d298f0a512d984e0fc889366291520d266 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
@@ -752,10 +752,10 @@ void CPDF_Page::GetDisplayMatrix(CFX_Matrix& matrix, |
y2 = yPos; |
break; |
} |
- display_matrix.Set(FXSYS_Div((FX_FLOAT)(x2 - x0), m_PageWidth), |
- FXSYS_Div((FX_FLOAT)(y2 - y0), m_PageWidth), |
- FXSYS_Div((FX_FLOAT)(x1 - x0), m_PageHeight), |
- FXSYS_Div((FX_FLOAT)(y1 - y0), m_PageHeight), (FX_FLOAT)x0, |
+ display_matrix.Set((((FX_FLOAT)(x2 - x0)) / m_PageWidth), |
Lei Zhang
2016/02/23 20:48:21
too many parenthesis?
dsinclair
2016/02/23 21:04:16
Removed some ...
|
+ (((FX_FLOAT)(y2 - y0)) / m_PageWidth), |
+ (((FX_FLOAT)(x1 - x0)) / m_PageHeight), |
+ (((FX_FLOAT)(y1 - y0)) / m_PageHeight), (FX_FLOAT)x0, |
(FX_FLOAT)y0); |
matrix = m_PageMatrix; |
matrix.Concat(display_matrix); |