Following kkaefer's view changes

This commit is contained in:
John Firebaugh
2015-04-21 15:02:30 -07:00
parent 75ae956b0e
commit 6c7a01a503
11 changed files with 18 additions and 73 deletions

View File

@@ -174,11 +174,7 @@ std::string Map::getStyleJSON() const {
#pragma mark - Size
void Map::resize(uint16_t width, uint16_t height, float ratio) {
resize(width, height, ratio, width * ratio, height * ratio);
}
void Map::resize(uint16_t width, uint16_t height, float ratio, uint16_t fbWidth, uint16_t fbHeight) {
if (data->transform.resize(width, height, ratio, fbWidth, fbHeight)) {
if (data->transform.resize(width, height, ratio, width * ratio, height * ratio)) {
triggerUpdate();
}
}