| 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/fxge/fx_ge.h" | 7 #include "core/include/fxge/fx_ge.h" |
| 8 #include "core/include/fxge/fx_freetype.h" | 8 #include "core/include/fxge/fx_freetype.h" |
| 9 #include "core/include/fxcodec/fx_codec.h" | 9 #include "core/include/fxcodec/fx_codec.h" |
| 10 #include "text_int.h" | 10 #include "core/src/fxge/ge/fx_text_int.h" |
| 11 | 11 |
| 12 #undef FX_GAMMA | 12 #undef FX_GAMMA |
| 13 #undef FX_GAMMA_INVERSE | 13 #undef FX_GAMMA_INVERSE |
| 14 #define FX_GAMMA(value) (value) | 14 #define FX_GAMMA(value) (value) |
| 15 #define FX_GAMMA_INVERSE(value) (value) | 15 #define FX_GAMMA_INVERSE(value) (value) |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 void ResetTransform(FT_Face face) { | 19 void ResetTransform(FT_Face face) { |
| 20 FXFT_Matrix matrix; | 20 FXFT_Matrix matrix; |
| (...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 void _CFX_UniqueKeyGen::Generate(int count, ...) { | 1860 void _CFX_UniqueKeyGen::Generate(int count, ...) { |
| 1861 va_list argList; | 1861 va_list argList; |
| 1862 va_start(argList, count); | 1862 va_start(argList, count); |
| 1863 for (int i = 0; i < count; i++) { | 1863 for (int i = 0; i < count; i++) { |
| 1864 int p = va_arg(argList, int); | 1864 int p = va_arg(argList, int); |
| 1865 ((FX_DWORD*)m_Key)[i] = p; | 1865 ((FX_DWORD*)m_Key)[i] = p; |
| 1866 } | 1866 } |
| 1867 va_end(argList); | 1867 va_end(argList); |
| 1868 m_KeyLen = count * sizeof(FX_DWORD); | 1868 m_KeyLen = count * sizeof(FX_DWORD); |
| 1869 } | 1869 } |
| OLD | NEW |