commit | 1d83e1981c8b89da93dff37a4f8b2b1ad8480b44 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Tue Aug 17 11:37:00 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Tue Aug 17 11:37:00 2010 -0700 |
tree | 84e1106e4f55d13b9398658f6e639b18f4a9c9c1 | |
parent | 0a41749953f35d33f61b3119e3161a82bb5fa59e [diff] [blame] |
Correctly set the viewport in layers. Bug #2919295 Change-Id: I16ce79ab0d5747cb01c6c1abe531da3dfd93fb54
diff --git a/libs/hwui/TextDropShadowCache.h b/libs/hwui/TextDropShadowCache.h index 9c86187..5fbe9e5 100644 --- a/libs/hwui/TextDropShadowCache.h +++ b/libs/hwui/TextDropShadowCache.h
@@ -47,7 +47,7 @@ ShadowText(const ShadowText& shadow): paint(shadow.paint), radius(shadow.radius), len(shadow.len), hash(shadow.hash) { - text = new char[len]; + text = new char[shadow.len]; memcpy(text, shadow.text, shadow.len); }