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_ge.h" | 7 #include "core/include/fxge/fx_ge.h" |
8 #include "../../../include/fxge/fx_freetype.h" | 8 #include "core/include/fxge/fx_freetype.h" |
9 #include "../../../include/fxcodec/fx_codec.h" | 9 #include "core/include/fxcodec/fx_codec.h" |
10 #include "text_int.h" | 10 #include "text_int.h" |
| 11 |
11 #undef FX_GAMMA | 12 #undef FX_GAMMA |
12 #undef FX_GAMMA_INVERSE | 13 #undef FX_GAMMA_INVERSE |
13 #define FX_GAMMA(value) (value) | 14 #define FX_GAMMA(value) (value) |
14 #define FX_GAMMA_INVERSE(value) (value) | 15 #define FX_GAMMA_INVERSE(value) (value) |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
18 void ResetTransform(FT_Face face) { | 19 void ResetTransform(FT_Face face) { |
19 FXFT_Matrix matrix; | 20 FXFT_Matrix matrix; |
20 matrix.xx = 0x10000L; | 21 matrix.xx = 0x10000L; |
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1872 void _CFX_UniqueKeyGen::Generate(int count, ...) { | 1873 void _CFX_UniqueKeyGen::Generate(int count, ...) { |
1873 va_list argList; | 1874 va_list argList; |
1874 va_start(argList, count); | 1875 va_start(argList, count); |
1875 for (int i = 0; i < count; i++) { | 1876 for (int i = 0; i < count; i++) { |
1876 int p = va_arg(argList, int); | 1877 int p = va_arg(argList, int); |
1877 ((FX_DWORD*)m_Key)[i] = p; | 1878 ((FX_DWORD*)m_Key)[i] = p; |
1878 } | 1879 } |
1879 va_end(argList); | 1880 va_end(argList); |
1880 m_KeyLen = count * sizeof(FX_DWORD); | 1881 m_KeyLen = count * sizeof(FX_DWORD); |
1881 } | 1882 } |
OLD | NEW |