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/fxge/fx_dib.h" | 7 #include "core/include/fxcodec/fx_codec.h" |
8 #include "../../../include/fxge/fx_ge.h" | 8 #include "core/include/fxge/fx_dib.h" |
9 #include "../../../include/fxcodec/fx_codec.h" | 9 #include "core/include/fxge/fx_ge.h" |
| 10 |
10 const FX_DWORD g_dwWinPalette[256] = { | 11 const FX_DWORD g_dwWinPalette[256] = { |
11 0xff000000, 0xff800000, 0xff008000, 0xff808000, 0xff000080, 0xff800080, | 12 0xff000000, 0xff800000, 0xff008000, 0xff808000, 0xff000080, 0xff800080, |
12 0xff008080, 0xff808080, 0xffC0DCC0, 0xffA6CAF0, 0xff2A3FAA, 0xff2A3FFF, | 13 0xff008080, 0xff808080, 0xffC0DCC0, 0xffA6CAF0, 0xff2A3FAA, 0xff2A3FFF, |
13 0xff2A5F00, 0xff2A5F55, 0xff2A5FAA, 0xff2A5FFF, 0xff2A7F00, 0xff2A7F55, | 14 0xff2A5F00, 0xff2A5F55, 0xff2A5FAA, 0xff2A5FFF, 0xff2A7F00, 0xff2A7F55, |
14 0xff2A7FAA, 0xff2A7FFF, 0xff2A9F00, 0xff2A9F55, 0xff2A9FAA, 0xff2A9FFF, | 15 0xff2A7FAA, 0xff2A7FFF, 0xff2A9F00, 0xff2A9F55, 0xff2A9FAA, 0xff2A9FFF, |
15 0xff2ABF00, 0xff2ABF55, 0xff2ABFAA, 0xff2ABFFF, 0xff2ADF00, 0xff2ADF55, | 16 0xff2ABF00, 0xff2ABF55, 0xff2ABFAA, 0xff2ABFFF, 0xff2ADF00, 0xff2ADF55, |
16 0xff2ADFAA, 0xff2ADFFF, 0xff2AFF00, 0xff2AFF55, 0xff2AFFAA, 0xff2AFFFF, | 17 0xff2ADFAA, 0xff2ADFFF, 0xff2AFF00, 0xff2AFF55, 0xff2AFFAA, 0xff2AFFFF, |
17 0xff550000, 0xff550055, 0xff5500AA, 0xff5500FF, 0xff551F00, 0xff551F55, | 18 0xff550000, 0xff550055, 0xff5500AA, 0xff5500FF, 0xff551F00, 0xff551F55, |
18 0xff551FAA, 0xff551FFF, 0xff553F00, 0xff553F55, 0xff553FAA, 0xff553FFF, | 19 0xff551FAA, 0xff551FFF, 0xff553F00, 0xff553F55, 0xff553FAA, 0xff553FFF, |
19 0xff555F00, 0xff555F55, 0xff555FAA, 0xff555FFF, 0xff557F00, 0xff557F55, | 20 0xff555F00, 0xff555F55, 0xff555FAA, 0xff555FFF, 0xff557F00, 0xff557F55, |
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 if (!m_bExtBuf) { | 1218 if (!m_bExtBuf) { |
1218 FX_Free(m_pBuffer); | 1219 FX_Free(m_pBuffer); |
1219 } | 1220 } |
1220 m_bExtBuf = FALSE; | 1221 m_bExtBuf = FALSE; |
1221 m_pBuffer = dest_buf; | 1222 m_pBuffer = dest_buf; |
1222 m_bpp = (uint8_t)dest_format; | 1223 m_bpp = (uint8_t)dest_format; |
1223 m_AlphaFlag = (uint8_t)(dest_format >> 8); | 1224 m_AlphaFlag = (uint8_t)(dest_format >> 8); |
1224 m_Pitch = dest_pitch; | 1225 m_Pitch = dest_pitch; |
1225 return TRUE; | 1226 return TRUE; |
1226 } | 1227 } |
OLD | NEW |