diff options
author | Victoria Lease <violets@google.com> | 2013-12-12 09:12:18 -0800 |
---|---|---|
committer | Abhisek Devkota <ciwrl@cyanogenmod.com> | 2015-08-19 11:41:16 -0700 |
commit | 0e0d6b5b627150577c9f4486b3ba97f9778799ca (patch) | |
tree | baa7eea792c50b86250831c67a9f2a6eb5be6a91 /src/base/ftbitmap.c | |
parent | 5b18c5874f85aa819ddef822b95a66ca070421dc (diff) | |
download | android_external_freetype-0e0d6b5b627150577c9f4486b3ba97f9778799ca.tar.gz android_external_freetype-0e0d6b5b627150577c9f4486b3ba97f9778799ca.tar.bz2 android_external_freetype-0e0d6b5b627150577c9f4486b3ba97f9778799ca.zip |
Update freetype to 8bb09b0fe4d9747bcf452a777cabed7d7ef435e2
Integrated patches from freetype2 git repository, up to hashval
8bb09b0fe4d9747bcf452a777cabed7d7ef435e2, which is post-2.5.2.
Most recent commit message from freetype git:
[truetype] Simplify logic of rendering modes.
Noteworthy patches included:
[sfnt] Fix handling of embedded bitmap strikes.
[truetype] Improve handling of buggy embedded bitmap strikes.
Add FT_FACE_FLAG_COLOR and FT_HAS_COLOR.
RM-154
Change-Id: I4a22d96c9443c7a587475ca0a9c684843e144b18
(cherry picked from commit 186452fd35238e2cd86e4e1494eaee211d7e4ccd)
Diffstat (limited to 'src/base/ftbitmap.c')
-rw-r--r-- | src/base/ftbitmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/ftbitmap.c b/src/base/ftbitmap.c index 975818e..182b1cc 100644 --- a/src/base/ftbitmap.c +++ b/src/base/ftbitmap.c @@ -385,6 +385,10 @@ FT_Long l; + /* Short-circuit transparent color to avoid div-by-zero. */ + if ( !a ) + return 0; + /* * Luminosity for sRGB is defined using ~0.2126,0.7152,0.0722 * coefficients for RGB channels *on the linear colors*. |