diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-02-05 14:58:20 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-06 13:52:25 +0100 |
commit | fb44fc81bdab09d079ed27e22b86718627ded48b (patch) | |
tree | 2a4e7c80eb49624c0b548d7bd33401792da1faa4 /src | |
parent | 0151fe6c01367ef03a2ff282b90e32dd3785a7c2 (diff) | |
download | qtlocation-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.cpp | 11 |
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); +} + +} |