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

View File

@@ -131,7 +131,7 @@ void HeadlessView::createContext() {
#endif
}
void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
void HeadlessView::resize(const uint16_t width, const uint16_t height, const float pixelRatio) {
clearBuffers();
width_ = width;
@@ -177,6 +177,8 @@ void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
throw std::runtime_error(error.str());
}
View::resize(width, height, pixelRatio, w, h);
deactivate();
}