diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-01 19:40:21 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-01 19:40:21 +0000 |
commit | ec9ed81b4d02ca22da7f1de6398e3c3192c3435b (patch) | |
tree | a379f9e164183e86f23116c18a21b4234f5eec22 /src | |
parent | a1c32563cf218c9eddc79fad303eb4185c774224 (diff) |
allow gamma params to be changed in .gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@3294 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/ports/SkFontHost_FreeType.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp index 43b9312563..39d6a0809e 100644 --- a/src/ports/SkFontHost_FreeType.cpp +++ b/src/ports/SkFontHost_FreeType.cpp @@ -55,8 +55,13 @@ //#define DUMP_STRIKE_CREATION //#define SK_GAMMA_APPLY_TO_A8 -#define SK_GAMMA_CONTRAST 0x66 -#define SK_GAMMA_EXPONENT 2.2 + +#ifndef SK_GAMMA_CONTRAST + #define SK_GAMMA_CONTRAST 0x66 +#endif +#ifndef SK_GAMMA_EXPONENT + #define SK_GAMMA_EXPONENT 2.2 +#endif #ifdef SK_DEBUG #define SkASSERT_CONTINUE(pred) \ |