automatically derive fb dimensions

This commit is contained in:
Konstantin Käfer
2014-04-15 18:45:15 -04:00
parent 2e4637ea1d
commit b414cbea44
2 changed files with 5 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ void Map::loadSettings() {
update();
}
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 fb_width, uint16_t fb_height) {
transform.resize(width, height, ratio, fb_width, fb_height);
painter.resize();