| 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/fxge/cfx_renderdevice.h" | 7 #include "core/fxge/cfx_renderdevice.h" |
| 8 | 8 |
| 9 #include "core/fxcrt/fx_safe_types.h" | 9 #include "core/fxcrt/fx_safe_types.h" |
| 10 #include "core/fxge/cfx_facecache.h" | 10 #include "core/fxge/cfx_facecache.h" |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 } | 525 } |
| 526 if (FillRectWithBlend(&rect_i, fill_color, blend_type)) | 526 if (FillRectWithBlend(&rect_i, fill_color, blend_type)) |
| 527 return TRUE; | 527 return TRUE; |
| 528 } | 528 } |
| 529 } | 529 } |
| 530 if ((fill_mode & 3) && stroke_alpha == 0 && !(fill_mode & FX_FILL_STROKE) && | 530 if ((fill_mode & 3) && stroke_alpha == 0 && !(fill_mode & FX_FILL_STROKE) && |
| 531 !(fill_mode & FX_FILL_TEXT_MODE)) { | 531 !(fill_mode & FX_FILL_TEXT_MODE)) { |
| 532 CFX_PathData newPath; | 532 CFX_PathData newPath; |
| 533 FX_BOOL bThin = FALSE; | 533 FX_BOOL bThin = FALSE; |
| 534 if (pPathData->GetZeroAreaPath(newPath, (CFX_Matrix*)pObject2Device, bThin, | 534 if (pPathData->GetZeroAreaPath(newPath, (CFX_Matrix*)pObject2Device, bThin, |
| 535 m_pDeviceDriver->GetDriverType())) { | 535 !!m_pDeviceDriver->GetDriverType())) { |
| 536 CFX_GraphStateData graphState; | 536 CFX_GraphStateData graphState; |
| 537 graphState.m_LineWidth = 0.0f; | 537 graphState.m_LineWidth = 0.0f; |
| 538 uint32_t strokecolor = fill_color; | 538 uint32_t strokecolor = fill_color; |
| 539 if (bThin) | 539 if (bThin) |
| 540 strokecolor = (((fill_alpha >> 2) << 24) | (strokecolor & 0x00ffffff)); | 540 strokecolor = (((fill_alpha >> 2) << 24) | (strokecolor & 0x00ffffff)); |
| 541 CFX_Matrix* pMatrix = nullptr; | 541 CFX_Matrix* pMatrix = nullptr; |
| 542 if (pObject2Device && !pObject2Device->IsIdentity()) | 542 if (pObject2Device && !pObject2Device->IsIdentity()) |
| 543 pMatrix = (CFX_Matrix*)pObject2Device; | 543 pMatrix = (CFX_Matrix*)pObject2Device; |
| 544 int smooth_path = FX_ZEROAREA_FILL; | 544 int smooth_path = FX_ZEROAREA_FILL; |
| 545 if (fill_mode & FXFILL_NOPATHSMOOTH) | 545 if (fill_mode & FXFILL_NOPATHSMOOTH) |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 fill_color, stroke_color, fill_mode, | 1069 fill_color, stroke_color, fill_mode, |
| 1070 FXDIB_BLEND_NORMAL)) { | 1070 FXDIB_BLEND_NORMAL)) { |
| 1071 return FALSE; | 1071 return FALSE; |
| 1072 } | 1072 } |
| 1073 } | 1073 } |
| 1074 if (pClippingPath) | 1074 if (pClippingPath) |
| 1075 pClippingPath->Append(&TransformedPath, pUser2Device); | 1075 pClippingPath->Append(&TransformedPath, pUser2Device); |
| 1076 } | 1076 } |
| 1077 return TRUE; | 1077 return TRUE; |
| 1078 } | 1078 } |
| OLD | NEW |