diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-10-26 15:12:43 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-11-10 11:33:17 -0800 |
commit | 54e08b1f83504e12cbc19b08295d9f9ed5177ab5 (patch) | |
tree | 40513395d4d0ed2d9003ef30a708f21b2e83e5ab /platform/android | |
parent | a5625675890213f94de7632d4ef152ade627c9a5 (diff) | |
download | qtlocation-mapboxgl-54e08b1f83504e12cbc19b08295d9f9ed5177ab5.tar.gz |
[core] Eliminate use of ClassProperties for paint
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/jni.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/platform/android/jni.cpp b/platform/android/jni.cpp index 3dca3c9b24..e532aede7d 100644 --- a/platform/android/jni.cpp +++ b/platform/android/jni.cpp @@ -356,11 +356,11 @@ std::pair<mbgl::AnnotationSegment, mbgl::ShapeAnnotation::Properties> annotation int aS = (strokeColor >> 24) & 0xFF; mbgl::ShapeAnnotation::Properties shapeProperties; - mbgl::FillPaintProperties fillProperties; + mbgl::FillAnnotationProperties fillProperties; fillProperties.opacity = alpha; - fillProperties.stroke_color = {{ static_cast<float>(rS) / 255.0f, static_cast<float>(gS) / 255.0f, static_cast<float>(bS) / 255.0f, static_cast<float>(aS) / 255.0f }}; - fillProperties.fill_color = {{ static_cast<float>(rF) / 255.0f, static_cast<float>(gF) / 255.0f, static_cast<float>(bF) / 255.0f, static_cast<float>(aF) / 255.0f }}; - shapeProperties.set<mbgl::FillPaintProperties>(fillProperties); + fillProperties.outlineColor = {{ static_cast<float>(rS) / 255.0f, static_cast<float>(gS) / 255.0f, static_cast<float>(bS) / 255.0f, static_cast<float>(aS) / 255.0f }}; + fillProperties.color = {{ static_cast<float>(rF) / 255.0f, static_cast<float>(gF) / 255.0f, static_cast<float>(bF) / 255.0f, static_cast<float>(aF) / 255.0f }}; + shapeProperties.set<mbgl::FillAnnotationProperties>(fillProperties); jobject points = env->GetObjectField(polygon, polygonPointsId); mbgl::AnnotationSegment segment = annotation_segment_from_latlng_jlist(env, points); @@ -941,11 +941,11 @@ jlong JNICALL nativeAddPolyline(JNIEnv *env, jobject obj, jlong nativeMapViewPtr } mbgl::ShapeAnnotation::Properties shapeProperties; - mbgl::LinePaintProperties lineProperties; + mbgl::LineAnnotationProperties lineProperties; lineProperties.opacity = alpha; lineProperties.color = {{ static_cast<float>(r) / 255.0f, static_cast<float>(g) / 255.0f, static_cast<float>(b) / 255.0f, static_cast<float>(a) / 255.0f }}; lineProperties.width = width; - shapeProperties.set<mbgl::LinePaintProperties>(lineProperties); + shapeProperties.set<mbgl::LineAnnotationProperties>(lineProperties); jobject points = env->GetObjectField(polyline, polylinePointsId); mbgl::AnnotationSegment segment = annotation_segment_from_latlng_jlist(env, points); @@ -1016,11 +1016,11 @@ jlongArray JNICALL nativeAddPolylines(JNIEnv *env, jobject obj, jlong nativeMapV } mbgl::ShapeAnnotation::Properties shapeProperties; - mbgl::LinePaintProperties lineProperties; + mbgl::LineAnnotationProperties lineProperties; lineProperties.opacity = alpha; lineProperties.color = {{ static_cast<float>(r) / 255.0f, static_cast<float>(g) / 255.0f, static_cast<float>(b) / 255.0f, static_cast<float>(a) / 255.0f }}; lineProperties.width = width; - shapeProperties.set<mbgl::LinePaintProperties>(lineProperties); + shapeProperties.set<mbgl::LineAnnotationProperties>(lineProperties); jobject points = env->GetObjectField(polyline, polylinePointsId); mbgl::AnnotationSegment segment = annotation_segment_from_latlng_jlist(env, points); |