diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-23 11:11:12 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-28 14:32:24 -0400 |
commit | 230027e5140a8aa3c6cb24ddf3f5aee20506ac8f (patch) | |
tree | 979fbd2cd84fedbb1bdb04c3968fafb1264264f9 /android | |
parent | a625ba8a0976ef8417a2609700187c5633be2c58 (diff) | |
download | qtlocation-mapboxgl-230027e5140a8aa3c6cb24ddf3f5aee20506ac8f.tar.gz |
Resize view from map thread
Diffstat (limited to 'android')
-rw-r--r-- | android/cpp/jni.cpp | 2 | ||||
-rw-r--r-- | android/cpp/native_map_view.cpp | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/android/cpp/jni.cpp b/android/cpp/jni.cpp index 188a1aee0d..2c7e757783 100644 --- a/android/cpp/jni.cpp +++ b/android/cpp/jni.cpp @@ -290,7 +290,7 @@ void JNICALL nativeResize(JNIEnv *env, jobject obj, jlong nativeMapViewPtr, jint assert(fbWidth <= UINT16_MAX); assert(fbHeight <= UINT16_MAX); NativeMapView *nativeMapView = reinterpret_cast<NativeMapView *>(nativeMapViewPtr); - nativeMapView->resize(width, height, ratio, fbWidth, fbHeight); + nativeMapView->getMap().resize(width, height, ratio); } void JNICALL nativeRemoveClass(JNIEnv *env, jobject obj, jlong nativeMapViewPtr, jstring clazz) { diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp index 6eb6628a6a..325484ec7f 100644 --- a/android/cpp/native_map_view.cpp +++ b/android/cpp/native_map_view.cpp @@ -800,9 +800,5 @@ void NativeMapView::updateFps() { env = nullptr; } -void NativeMapView::resize(uint16_t width, uint16_t height, float ratio, uint16_t, uint16_t) { - map.resize(width, height, ratio); -} - } } |