diff options
author | 2011-03-14 17:45:33 +0000 | |
---|---|---|
committer | 2011-03-14 17:45:33 +0000 | |
commit | 8abde0a15d330bda826de3bf0b7bf9a59c514ddf (patch) | |
tree | 841aa29562d3cb452a5517905b0a83f75397ce3e /src/ports/SkFontHost_FreeType.cpp | |
parent | 06c3b6bfd53c93d5ba49cf4d87b2c5c1bf33f072 (diff) |
disable lcd format for lcd16 as well
git-svn-id: http://skia.googlecode.com/svn/trunk@934 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports/SkFontHost_FreeType.cpp')
-rw-r--r-- | src/ports/SkFontHost_FreeType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp index 56a13fc0a8..565d1c3f99 100644 --- a/src/ports/SkFontHost_FreeType.cpp +++ b/src/ports/SkFontHost_FreeType.cpp @@ -522,7 +522,7 @@ void SkFontHost::FilterRec(SkScalerContext::Rec* rec) { FT_Done_FreeType(gFTLibrary); } - if (!gLCDSupport && rec->isLCD()) { + if (!gLCDSupport && (rec->isLCD() || SkMask::kLCD16_Format == rec->fMaskFormat)) { // If the runtime Freetype library doesn't support LCD mode, we disable // it here. rec->fMaskFormat = SkMask::kA8_Format; |