diff options
author | Victoria Lease <violets@google.com> | 2013-09-19 15:38:21 -0700 |
---|---|---|
committer | Victoria Lease <violets@google.com> | 2013-09-19 15:38:21 -0700 |
commit | 16c84069a4cc0c0d3c35e798dc5e4b0130d4a26f (patch) | |
tree | 82565c1ba045ee11d0810e86996a279f98cfb124 /libs | |
parent | a2d65108dd32a0836fe08f0c72efdd5c727dad44 (diff) | |
download | frameworks_base-16c84069a4cc0c0d3c35e798dc5e4b0130d4a26f.zip frameworks_base-16c84069a4cc0c0d3c35e798dc5e4b0130d4a26f.tar.gz frameworks_base-16c84069a4cc0c0d3c35e798dc5e4b0130d4a26f.tar.bz2 |
fix emoji clipping in hw draw path
I guess we don't want to overwrite the last line in every RGBA glyph
with our one-line texture atlas spacer?
Bug: 10841207
Change-Id: Ief85ca58650c731e9d21dbf90942b7b44670abcc
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/FontRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index 7e99a5f..00e7870 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -353,7 +353,7 @@ void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyp memset(dstR += dstStride, 0, borderSize); // trailing border column } // write trailing border line - memset(dstL, 0, rowSize + 2 * borderSize); + memset(dstL += dstStride, 0, rowSize + 2 * borderSize); break; } case SkMask::kBW_Format: { |