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 "xfa/fxfa/include/xfa_ffwidget.h" | 7 #include "xfa/fxfa/include/xfa_ffwidget.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 pRenderDevice->SetClip_PathFill(&path, pMatrix, FXFILL_WINDING); | 828 pRenderDevice->SetClip_PathFill(&path, pMatrix, FXFILL_WINDING); |
829 CFX_Matrix mtImage(1, 0, 0, -1, 0, 1); | 829 CFX_Matrix mtImage(1, 0, 0, -1, 0, 1); |
830 mtImage.Concat(rtFit.width, 0, 0, rtFit.height, rtFit.left, rtFit.top); | 830 mtImage.Concat(rtFit.width, 0, 0, rtFit.height, rtFit.left, rtFit.top); |
831 mtImage.Concat(*pMatrix); | 831 mtImage.Concat(*pMatrix); |
832 CXFA_ImageRenderer imageRender; | 832 CXFA_ImageRenderer imageRender; |
833 FX_BOOL bRet = imageRender.Start(pRenderDevice, pDIBitmap, 0, 255, &mtImage, | 833 FX_BOOL bRet = imageRender.Start(pRenderDevice, pDIBitmap, 0, 255, &mtImage, |
834 FXDIB_INTERPOL); | 834 FXDIB_INTERPOL); |
835 while (bRet) { | 835 while (bRet) { |
836 bRet = imageRender.Continue(NULL); | 836 bRet = imageRender.Continue(NULL); |
837 } | 837 } |
838 pRenderDevice->RestoreState(); | 838 pRenderDevice->RestoreState(false); |
839 } | 839 } |
840 | 840 |
841 static const uint8_t g_inv_base64[128] = { | 841 static const uint8_t g_inv_base64[128] = { |
842 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, | 842 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
843 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, | 843 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
844 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, | 844 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, |
845 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, | 845 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, |
846 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, | 846 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, |
847 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, | 847 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
848 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, | 848 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1976 iType != XFA_ELEMENT_Rectangle) { | 1976 iType != XFA_ELEMENT_Rectangle) { |
1977 return; | 1977 return; |
1978 } | 1978 } |
1979 CXFA_StrokeArray strokes; | 1979 CXFA_StrokeArray strokes; |
1980 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { | 1980 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { |
1981 box.GetStrokes(strokes); | 1981 box.GetStrokes(strokes); |
1982 } | 1982 } |
1983 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1983 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
1984 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1984 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
1985 } | 1985 } |
OLD | NEW |