commit | c932c9fd77503aec47c256818dd94a8b57219a43 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Dec 02 15:43:39 2013 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Dec 02 15:43:39 2013 +0000 |
tree | 89db62d278cfa7ec1083e2d60a788d567c633ce6 | |
parent | d6bab0238655dbab24dfe92bd0b16b464310a8c7 [diff] |
Fix truncation of glyphs in SkScalerContext.cpp https://codereview.chromium.org/99323002/ git-svn-id: http://skia.googlecode.com/svn/trunk@12430 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp index 4996a73..04ef2a9 100644 --- a/src/core/SkScalerContext.cpp +++ b/src/core/SkScalerContext.cpp
@@ -559,7 +559,7 @@ unsigned bits = 0; int shift = 7; for (int i = 0; i < leftOverBits; ++i, --shift) { - bits |= convert_8_to_1(*src++ >> 7) << shift; + bits |= convert_8_to_1(*src++) << shift; } *dst++ = bits; }