diff options
author | Mike Reed <reed@google.com> | 2009-06-19 15:13:39 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2009-06-19 15:13:39 -0400 |
commit | 290f5baf9192752287723a29ede4399ae3e4c826 (patch) | |
tree | 3af9dcd0d95894929fa853a6e502b14162c74190 /core | |
parent | 36c153f84f2728ffc67b7f30a1f326a7731c2088 (diff) | |
download | frameworks_base-290f5baf9192752287723a29ede4399ae3e4c826.zip frameworks_base-290f5baf9192752287723a29ede4399ae3e4c826.tar.gz frameworks_base-290f5baf9192752287723a29ede4399ae3e4c826.tar.bz2 |
when we reset a paint, it should return to the state it was in when it was first created.
for java, this means setting its text-encoding to UTF16...
Diffstat (limited to 'core')
-rw-r--r-- | core/jni/android/graphics/Paint.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/jni/android/graphics/Paint.cpp b/core/jni/android/graphics/Paint.cpp index 76e6f02..d1fe83e 100644 --- a/core/jni/android/graphics/Paint.cpp +++ b/core/jni/android/graphics/Paint.cpp @@ -69,6 +69,8 @@ public: static void reset(JNIEnv* env, jobject clazz, SkPaint* obj) { obj->reset(); + // utf16 is required for java + obj->setTextEncoding(SkPaint::kUTF16_TextEncoding); } static void assign(JNIEnv* env, jobject clazz, SkPaint* dst, const SkPaint* src) { |