Merge change 4792 into donut

* changes:
  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...
This commit is contained in:
Android (Google) Code Review
2009-06-19 13:30:15 -07:00

View File

@@ -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) {