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/include/fxcodec/fx_codec.h" | 7 #include "core/include/fxcodec/fx_codec.h" |
8 #include "core/include/fxge/fx_dib.h" | 8 #include "core/include/fxge/fx_dib.h" |
9 #include "core/include/fxge/fx_ge.h" | 9 #include "core/include/fxge/fx_ge.h" |
10 | 10 |
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 if (!m_bExtBuf) { | 1218 if (!m_bExtBuf) { |
1219 FX_Free(m_pBuffer); | 1219 FX_Free(m_pBuffer); |
1220 } | 1220 } |
1221 m_bExtBuf = FALSE; | 1221 m_bExtBuf = FALSE; |
1222 m_pBuffer = dest_buf; | 1222 m_pBuffer = dest_buf; |
1223 m_bpp = (uint8_t)dest_format; | 1223 m_bpp = (uint8_t)dest_format; |
1224 m_AlphaFlag = (uint8_t)(dest_format >> 8); | 1224 m_AlphaFlag = (uint8_t)(dest_format >> 8); |
1225 m_Pitch = dest_pitch; | 1225 m_Pitch = dest_pitch; |
1226 return TRUE; | 1226 return TRUE; |
1227 } | 1227 } |
OLD | NEW |