make Map::resize() private

they can only be called by View::resize
This commit is contained in:
Konstantin Käfer
2015-02-05 14:58:20 +01:00
parent 0151fe6c01
commit fb44fc81bd
12 changed files with 57 additions and 73 deletions

11
src/mbgl/map/view.cpp Normal file
View File

@@ -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);
}
}