OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/fpdfdoc/cpdf_annot.h" | 7 #include "core/fpdfdoc/include/cpdf_annot.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" | 9 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" |
10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
13 #include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h" | 13 #include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h" |
14 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 14 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
15 #include "core/fxcrt/include/fx_memory.h" | 15 #include "core/fxcrt/include/fx_memory.h" |
16 #include "core/fxge/include/fx_ge.h" | 16 #include "core/fxge/include/fx_ge.h" |
17 | 17 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 CFX_PathData path; | 237 CFX_PathData path; |
238 width /= 2; | 238 width /= 2; |
239 path.AppendRect(rect.left + width, rect.bottom + width, rect.right - width, | 239 path.AppendRect(rect.left + width, rect.bottom + width, rect.right - width, |
240 rect.top - width); | 240 rect.top - width); |
241 int fill_type = 0; | 241 int fill_type = 0; |
242 if (pOptions && (pOptions->m_Flags & RENDER_NOPATHSMOOTH)) { | 242 if (pOptions && (pOptions->m_Flags & RENDER_NOPATHSMOOTH)) { |
243 fill_type |= FXFILL_NOPATHSMOOTH; | 243 fill_type |= FXFILL_NOPATHSMOOTH; |
244 } | 244 } |
245 pDevice->DrawPath(&path, pUser2Device, &graph_state, argb, argb, fill_type); | 245 pDevice->DrawPath(&path, pUser2Device, &graph_state, argb, argb, fill_type); |
246 } | 246 } |
OLD | NEW |