summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-05 14:58:20 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-03-06 13:52:25 +0100
commitfb44fc81bdab09d079ed27e22b86718627ded48b (patch)
tree2a4e7c80eb49624c0b548d7bd33401792da1faa4 /src
parent0151fe6c01367ef03a2ff282b90e32dd3785a7c2 (diff)
downloadqtlocation-mapboxgl-fb44fc81bdab09d079ed27e22b86718627ded48b.tar.gz
make Map::resize() private
they can only be called by View::resize
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/view.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mbgl/map/view.cpp b/src/mbgl/map/view.cpp
new file mode 100644
index 0000000000..3927652ba6
--- /dev/null
+++ b/src/mbgl/map/view.cpp
@@ -0,0 +1,11 @@
+#include <mbgl/map/view.hpp>
+#include <mbgl/map/map.hpp>
+
+namespace mbgl {
+
+void View::resize(uint16_t width, uint16_t height, float ratio, uint16_t fbWidth, uint16_t fbHeight) {
+ assert(map);
+ map->resize(width, height, ratio, fbWidth, fbHeight);
+}
+
+}