| 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 "../../include/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
| 8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
| 9 #include "../../include/pdfwindow/PWL_Icon.h" | 9 #include "../../include/pdfwindow/PWL_Icon.h" |
| 10 #include "../../include/pdfwindow/PWL_Signature.h" | 10 #include "../../include/pdfwindow/PWL_Signature.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 { | 35 { |
| 36 CPWL_Wnd::DrawThisAppearance(pDevice, pUser2Device); | 36 CPWL_Wnd::DrawThisAppearance(pDevice, pUser2Device); |
| 37 | 37 |
| 38 if (m_pImage) | 38 if (m_pImage) |
| 39 { | 39 { |
| 40 CPDF_Rect rcClient = GetClientRect(); | 40 CPDF_Rect rcClient = GetClientRect(); |
| 41 | 41 |
| 42 FX_FLOAT x, y; | 42 FX_FLOAT x, y; |
| 43 pUser2Device->Transform(rcClient.left, rcClient.top, x, y); | 43 pUser2Device->Transform(rcClient.left, rcClient.top, x, y); |
| 44 | 44 |
| 45 » » pDevice->StretchDIBits(m_pImage, (FX_INT32)x, (FX_INT32)y, | 45 » » pDevice->StretchDIBits(m_pImage, (int32_t)x, (int32_t)y, |
| 46 » » » (FX_INT32)rcClient.Width(), (FX_INT32)rcClient.Height())
; | 46 » » » (int32_t)rcClient.Width(), (int32_t)rcClient.Height()); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 void CPWL_Signature_Image::GetThisAppearanceStream(CFX_ByteTextBuf & sAppStream) | 50 void CPWL_Signature_Image::GetThisAppearanceStream(CFX_ByteTextBuf & sAppStream) |
| 51 { | 51 { |
| 52 sAppStream << CPWL_Image::GetImageAppStream(); | 52 sAppStream << CPWL_Image::GetImageAppStream(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void CPWL_Signature_Image::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale) | 55 void CPWL_Signature_Image::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale) |
| 56 { | 56 { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 pDevice->DrawPath(&path, pUser2Device, &gsd, 0, ArgbEncode(255,255,0,0),
FXFILL_ALTERNATE); | 211 pDevice->DrawPath(&path, pUser2Device, &gsd, 0, ArgbEncode(255,255,0,0),
FXFILL_ALTERNATE); |
| 212 */ | 212 */ |
| 213 } | 213 } |
| 214 | 214 |
| 215 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf & sAppStream) | 215 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf & sAppStream) |
| 216 { | 216 { |
| 217 CPWL_Wnd::GetThisAppearanceStream(sAppStream); | 217 CPWL_Wnd::GetThisAppearanceStream(sAppStream); |
| 218 } | 218 } |
| 219 | 219 |
| 220 | 220 |
| OLD | NEW |