OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/src/fpdfapi/fpdf_page/pageint.h" | 7 #include "core/src/fpdfapi/fpdf_page/pageint.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
745 break; | 745 break; |
746 case 3: | 746 case 3: |
747 x0 = xPos + xSize; | 747 x0 = xPos + xSize; |
748 y0 = yPos + ySize; | 748 y0 = yPos + ySize; |
749 x1 = xPos; | 749 x1 = xPos; |
750 y1 = yPos + ySize; | 750 y1 = yPos + ySize; |
751 x2 = xPos + xSize; | 751 x2 = xPos + xSize; |
752 y2 = yPos; | 752 y2 = yPos; |
753 break; | 753 break; |
754 } | 754 } |
755 display_matrix.Set(FXSYS_Div((FX_FLOAT)(x2 - x0), m_PageWidth), | 755 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 ...
| |
756 FXSYS_Div((FX_FLOAT)(y2 - y0), m_PageWidth), | 756 (((FX_FLOAT)(y2 - y0)) / m_PageWidth), |
757 FXSYS_Div((FX_FLOAT)(x1 - x0), m_PageHeight), | 757 (((FX_FLOAT)(x1 - x0)) / m_PageHeight), |
758 FXSYS_Div((FX_FLOAT)(y1 - y0), m_PageHeight), (FX_FLOAT)x0, | 758 (((FX_FLOAT)(y1 - y0)) / m_PageHeight), (FX_FLOAT)x0, |
759 (FX_FLOAT)y0); | 759 (FX_FLOAT)y0); |
760 matrix = m_PageMatrix; | 760 matrix = m_PageMatrix; |
761 matrix.Concat(display_matrix); | 761 matrix.Concat(display_matrix); |
762 } | 762 } |
763 | 763 |
764 CPDF_ParseOptions::CPDF_ParseOptions() { | 764 CPDF_ParseOptions::CPDF_ParseOptions() { |
765 m_bTextOnly = FALSE; | 765 m_bTextOnly = FALSE; |
766 m_bMarkedContent = TRUE; | 766 m_bMarkedContent = TRUE; |
767 m_bSeparateForm = TRUE; | 767 m_bSeparateForm = TRUE; |
768 m_bDecodeInlineImage = FALSE; | 768 m_bDecodeInlineImage = FALSE; |
769 } | 769 } |
OLD | NEW |