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/fxge/include/fx_ge.h" | |
8 | |
9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ | 7 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ |
dsinclair
2016/08/09 14:14:35
This needs a fx_system.h include before this line.
npm
2016/08/09 16:26:12
Done.
| |
10 #include <windows.h> | 8 #include <windows.h> |
11 | 9 |
12 #include "core/fxge/include/cfx_gemodule.h" | 10 #include "core/fxge/include/cfx_gemodule.h" |
13 #include "core/fxge/win32/cfx_windowsdib.h" | 11 #include "core/fxge/win32/cfx_windowsdib.h" |
14 #include "core/fxge/win32/win32_int.h" | 12 #include "core/fxge/win32/win32_int.h" |
15 | 13 |
16 CFX_ByteString CFX_WindowsDIB::GetBitmapInfo(const CFX_DIBitmap* pBitmap) { | 14 CFX_ByteString CFX_WindowsDIB::GetBitmapInfo(const CFX_DIBitmap* pBitmap) { |
17 CFX_ByteString result; | 15 CFX_ByteString result; |
18 int len = sizeof(BITMAPINFOHEADER); | 16 int len = sizeof(BITMAPINFOHEADER); |
19 if (pBitmap->GetBPP() == 1 || pBitmap->GetBPP() == 8) { | 17 if (pBitmap->GetBPP() == 1 || pBitmap->GetBPP() == 8) { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 } | 210 } |
213 | 211 |
214 void CFX_WindowsDIB::LoadFromDevice(HDC hDC, int left, int top) { | 212 void CFX_WindowsDIB::LoadFromDevice(HDC hDC, int left, int top) { |
215 ::BitBlt(m_hMemDC, 0, 0, m_Width, m_Height, hDC, left, top, SRCCOPY); | 213 ::BitBlt(m_hMemDC, 0, 0, m_Width, m_Height, hDC, left, top, SRCCOPY); |
216 } | 214 } |
217 | 215 |
218 void CFX_WindowsDIB::SetToDevice(HDC hDC, int left, int top) { | 216 void CFX_WindowsDIB::SetToDevice(HDC hDC, int left, int top) { |
219 ::BitBlt(hDC, left, top, m_Width, m_Height, m_hMemDC, 0, 0, SRCCOPY); | 217 ::BitBlt(hDC, left, top, m_Width, m_Height, m_hMemDC, 0, 0, SRCCOPY); |
220 } | 218 } |
221 #endif | 219 #endif |
OLD | NEW |