Unverified Commit 1a0c1c53 authored by Nikolay Igotti's avatar Nikolay Igotti Committed by GitHub

Fix FontFeature typo (#332)

parent 2fd5eb65
...@@ -240,8 +240,8 @@ namespace skija { ...@@ -240,8 +240,8 @@ namespace skija {
ctor = env->GetMethodID(cls, "<init>", "(Ljava/lang/String;I)V"); ctor = env->GetMethodID(cls, "<init>", "(Ljava/lang/String;I)V");
tag = env->GetFieldID(cls, "_tag", "I"); tag = env->GetFieldID(cls, "_tag", "I");
value = env->GetFieldID(cls, "value", "I"); value = env->GetFieldID(cls, "value", "I");
start = env->GetFieldID(cls, "start", "J"); start = env->GetFieldID(cls, "start", "I");
end = env->GetFieldID(cls, "end", "J"); end = env->GetFieldID(cls, "end", "I");
} }
void onUnload(JNIEnv* env) { void onUnload(JNIEnv* env) {
...@@ -255,8 +255,8 @@ namespace skija { ...@@ -255,8 +255,8 @@ namespace skija {
skija::AutoLocal<jobject> featureObj(env, env->GetObjectArrayElement(featuresArr, i)); skija::AutoLocal<jobject> featureObj(env, env->GetObjectArrayElement(featuresArr, i));
features[i] = {static_cast<SkFourByteTag>(env->GetIntField(featureObj.get(), skija::FontFeature::tag)), features[i] = {static_cast<SkFourByteTag>(env->GetIntField(featureObj.get(), skija::FontFeature::tag)),
static_cast<uint32_t>(env->GetIntField(featureObj.get(), skija::FontFeature::value)), static_cast<uint32_t>(env->GetIntField(featureObj.get(), skija::FontFeature::value)),
static_cast<size_t>(env->GetLongField(featureObj.get(), skija::FontFeature::start)), static_cast<size_t>(env->GetIntField(featureObj.get(), skija::FontFeature::start)),
static_cast<size_t>(env->GetLongField(featureObj.get(), skija::FontFeature::end))}; static_cast<size_t>(env->GetIntField(featureObj.get(), skija::FontFeature::end))};
} }
return features; return features;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment